Dashboards & Visualizations

How to use eval or If in depends for panel?

SMM10
Explorer

Is there a way to do the following?

 

  <row depends="$resultCount$"<=3>

 

I have a few panels I want to show dynamically based on the results from the above search.

Labels (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Where the resultCount token is set, create an additional token with an eval element, and use this new token in the depends attribute.

<eval token="showpanel">if($resultCount$<=3,1,null())</eval>

<row depends="$showpanel$">

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Where the resultCount token is set, create an additional token with an eval element, and use this new token in the depends attribute.

<eval token="showpanel">if($resultCount$<=3,1,null())</eval>

<row depends="$showpanel$">
0 Karma
Get Updates on the Splunk Community!

New Release | Splunk Cloud Platform 10.1.2507

Hello Splunk Community!We are thrilled to announce the General Availability of Splunk Cloud Platform 10.1.2507 ...

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

&#x1f5e3; You Spoke, We Listened  Audit Trail v2 wasn’t written in isolation—it was shaped by your voices.  In ...

Splunk New Course Releases for a Changing World

Every day, the world feels like it’s moving faster with new technological breakthroughs, AI innovation, and ...