Dashboards & Visualizations

Splunk Dashboard studio - hide and show table based on Drop down value

Pranita_P
New Member

I have 1 drop down having 5 values(value 1 ,value 2,value 3,value 4,value 5) in it.
i have assigned a token to this drop down 

For (value 1 ,value 2,value 3,value 4)
i have a table(table 1) below drop down  where the results change as per values of the drop down selected.
It uses 1 query underneath to get details


what i want is to have another another table(table 2) which should display in place of table 1 [hide table 1 and display 2 instead ] when value 5 is selected from drop down.  This needs to use different query 

How to achieve this ?


Labels (1)
0 Karma

livehybrid
Super Champion

Hi @Pranita_P 

For each table click on the Visualisation dropdown on the right and select the "When data is unavailable, hide element" checkbox. This means that the table will not show when there are no results.

Now you need to make it return no results when value5 is/isnt selected depending on your dropdown. You can do this with a where statement on each table (it might not be the most efficient to use a where statement here but not sure how else you could achieve it).

You would add something like:

| where "$yourDropdownToken$"="value 5"

Obviously you can change = to != as required.

🌟 Did this answer help you? If so, please consider:

  • Adding karma to show it was useful
  • Marking it as the solution if it resolved your issue
  • Commenting if you need any clarification

Your feedback encourages the volunteers in this community to continue contributing

0 Karma
Get Updates on the Splunk Community!

AppDynamics Summer Webinars

This summer, our mighty AppDynamics team is cooking up some delicious content on YouTube Live to satiate your ...

SOCin’ it to you at Splunk University

Splunk University is expanding its instructor-led learning portfolio with dedicated Security tracks at .conf25 ...

Credit Card Data Protection & PCI Compliance with Splunk Edge Processor

Organizations handling credit card transactions know that PCI DSS compliance is both critical and complex. The ...