Dashboards & Visualizations

How to unset a drilldown token while other drilldown tokens are selected?

vasukadival
Loves-to-Learn

Dear Splunkers,

I have a dashboard with 2 pie charts and one statistical table
I have set drilldown on both the pie chart so that when I select the slices on either pie chart, the data on statistical table gets refreshed accordingly
Problem is when I click on any slice on 1st Pie Chart, data on table loads correctly
Then I click on any slice on 2nd Pie chart, data on table includes both the previous token value along with current one
I need the previous token value to be reset when I click on 2nd pie chart
Could someone please help

Labels (2)
0 Karma

bowesmana
SplunkTrust
SplunkTrust

When you set the token for pie chart one, just also do an unset of the pie chart 2 token, e.g.

<drilldown>
  <set token="pc_1">your_value</set>
  <unset token="pc_2"></unset>
</drilldown>

and similarly for the second pie chart.

 

0 Karma

vasukadival
Loves-to-Learn

@bowesmana Hey 
Thank you so much for your response
I tried this but doesn't seem to work

0 Karma

bowesmana
SplunkTrust
SplunkTrust

Please share your XML for the two panels

 

 

0 Karma
Get Updates on the Splunk Community!

New Year, New Changes for Splunk Certifications

As we embrace a new year, we’re making a small but important update to the Splunk Certification ...

Stay Connected: Your Guide to January Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...

[Puzzles] Solve, Learn, Repeat: Reprocessing XML into Fixed-Length Events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...