Dashboards & Visualizations

conditional drilldown set token to * if Token="Total"

dbcase
Motivator

Hi, I have the below (spaces removed) conditional drill down and I'm trying to set the token to * if the token is set to "Total" but for some reason it isn't working. If I click Total it never changes the token is still set to Total

    < drilldown >
      < condition field="Trend" >
        < unset token="tablevaluesubscribers" >< /unset >
      < /condition >
      < condition field="Subscribers" >
        < unset token="tablevaluesubscribers" >< /unset >
      < /condition >
      < condition field="Total ">
        < set token="tablevaluesubscribers" > there is an asterik here < /set >
      < /condition >
      < condition field="*" >
        < set token="tablevariablesubscribers" >$click.value2$< /set >
      < /condition >
    < /drilldown >

0 Karma
1 Solution

sundareshr
Legend

Try this

     < drilldown >
       < condition field="Total ">
         < set token="tablevaluesubscribers" > there is an asterik here < /set >
       < /condition >
       < condition field="*" >
         < set token="tablevariablesubscribers" >$click.value2$< /set >
         < unset token="tablevaluesubscribers" >< /unset >
       < /condition >
     < /drilldown >

View solution in original post

0 Karma

sundareshr
Legend

Try this

     < drilldown >
       < condition field="Total ">
         < set token="tablevaluesubscribers" > there is an asterik here < /set >
       < /condition >
       < condition field="*" >
         < set token="tablevariablesubscribers" >$click.value2$< /set >
         < unset token="tablevaluesubscribers" >< /unset >
       < /condition >
     < /drilldown >
0 Karma

akarivaratharaj
Communicator

Hi,

I am trying the similar kind of condition to hide the panel. I have multiselect input (token is App_Value). So whenever I click all option (all=*), only then my panel1 should display. For any other inputs, my panel1 should be hidden.
Currently I am trying like this but not working

<done>
            <condition $App_Value$="*">
              <set token="hide_panel">true</set>
            </condition>
            <condition>
              <unset token="hide_panel"></unset>
            </condition>
          </done>

Could anyone please help me on this

0 Karma
Get Updates on the Splunk Community!

Improve Your Security Posture

Watch NowImprove Your Security PostureCustomers are at the center of everything we do at Splunk and security ...

Maximize the Value from Microsoft Defender with Splunk

 Watch NowJoin Splunk and Sens Consulting for this Security Edition Tech TalkWho should attend:  Security ...

This Week's Community Digest - Splunk Community Happenings [6.27.22]

Get the latest news and updates from the Splunk Community here! News From Splunk Answers ✍️ Splunk Answers is ...