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
Get Updates on the Splunk Community!

OpenTelemetry for Legacy Apps? Yes, You Can!

This article is a follow-up to my previous article posted on the OpenTelemetry Blog, "Your Critical Legacy App ...

UCC Framework: Discover Developer Toolkit for Building Technology Add-ons

The Next-Gen Toolkit for Splunk Technology Add-on Development The Universal Configuration Console (UCC) ...

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...