What is the problem or goal you're trying to solve or accomplish?
Some datasets contain columns that are needed for Row Level Security and filtering but hold sensitive values, for example an internal identifier for staff or users. Dashboard viewers should not see these values. Drill to Detail returns every column of the chart's dataset, both in the Drill to Detail table and in the API response behind it, and there is no setting to exclude a column. Unticking "Is dimension" and "Is filterable" on the column does not remove it from Drill to Detail or from chart-data queries (verified on Preset 6.1).
How are you solving it currently?
There is no direct solution, so the column remains visible. The available workaround is to build the charts on a virtual dataset that leaves the sensitive column out of its SELECT list, and to apply the row restriction either inside the dataset SQL (Jinja, e.g. current_user_email() against a user-to-identifier mapping table) or with an RLS clause written as a subquery against the source table, matched on a non-sensitive key. Limitations of this workaround:
RLS clauses that reference the sensitive column directly fail on the new dataset, so existing rules must be rewritten.
Dashboard native filters on the sensitive column no longer apply to charts on the new dataset.
The subquery approach needs a non-sensitive unique row key in the dataset.
Separate datasets must be maintained, and viewers must not have access to the original dataset or to the table in SQL Lab. The only other option, removing Drill to Detail for viewers, takes the feature away for all columns.
What is your recommended solution?
A way to mark specific dataset columns as hidden from Drill to Detail, enforced server-side so the column is also excluded from the API response, while the column stays in the dataset and remains usable for RLS clauses and filters.