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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...