Hide Dataset Fields from Lens and Dashboard
By default, all dataset fields are available in the UI. But you can hide fields so that users can’t select them when building queries and dashboards.
Although hidden fields aren’t available in the interface, users can still manually add them in dashboard JSON and SAQL queries. Users can also access the fields with the CRM Analytics REST API.
For example, the Opportunity.StageName field appears in the explorer.

To hide the field, modify the XMD as shown in the following text.
To show the field, set showInExplorer to true.
After applying the change, the field is no longer available for selection.

See Also