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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...