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!

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

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...