---
schema_version: "1"
id: 963211d06797a421e17a5d6ffa1cb267da54728ca7db32e11d365737ed40cf91
title: Hide Dataset Fields from Lens and Dashboard
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/analytics/bi_dev_guide_xmd/guides/concept/bi-xmd-show-dataset-fields.md
canonical_url: https://developer.salesforce.com/docs/analytics/bi-dev-guide-xmd/guide/bi-xmd-show-dataset-fields.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: fc88a539394ad5c151b57f40e86bc9c1ceb74f406f22aa0b5ab040e5162f7bd2
products:
  - Analytics Extended Metadata (XMD) Developer Guide
  - analytics
---

# 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.

**note:** 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.

![When creating a grouping  in explorer, you can see the Opportunity.StageName dataset field.](https://developer.salesforce.com/media/bi_dev_guide_xmd/bi_xmd_field_show_true.png)

To hide the field, modify the XMD as shown in the following text.

```nolang
"dimensions": [{
		"field": "Opportunity.StageName",
		"showInExplorer": false
	}],
```

**note:** To show the field, set **showInExplorer** to **true**.

After applying the change, the field is no longer available for selection.

![The Opportunity.StageName dataset field is no longer available.](https://developer.salesforce.com/media/bi_dev_guide_xmd/bi_xmd_field_show_false.png)

**See Also**

- [Dimensions and Derived Dimensions in XMD](https://developer.salesforce.com/docs/analytics/bi-dev-guide-xmd/reference/bi-xmd-reference-dimensions.md)
- [Measures and Derived Measures in XMD](https://developer.salesforce.com/docs/analytics/bi-dev-guide-xmd/reference/bi-xmd-reference-measures.md)
