Add ad hoc filters
- Navigate to the dashboard you want to make a variable for and then click the Dashboard settings (gear) icon at the top of the page.
- Enter a Name for your variable.
- In the Type list, select Ad hoc filters.
- (optional) In Label, enter the display name of the variable dropdown. If you don’t enter a display name, then the dropdown label will be the variable name.
- Choose a Hide option:
- Label - The variable dropdown only displays the selected variable value and a down arrow.
- Variable - No variable dropdown is displayed on the dashboard.
- In the Data source list, select the target data source. For more information about data sources, refer to Add a data source.
- Click Add to add the variable to the dashboard.