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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...