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
SplunkTrust
SplunkTrust

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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...