Dashboards & Visualizations

Calculate percentage between two different panels

sobotiv
Loves-to-Learn Lots

I have a dashboard setup like this. 

 

sobotiv_1-1622020944340.png

 

First panel shows statistics by categories, and you can choose a time interval to display the data. Search code is: index=kopo sourcetype="kopo primjeri" category1 |top limit=20 category1. Time range scope is set with the drop down menu above the table, named time_prev

Second panel basically does the same thing, again you can choose the time interval. Search code is: index=kopo sourcetype="kopo primjeri" category1 |top limit=20 category1. Time range scope is set with the drop down menu above the table, named time_curr

 

What I'm trying to do is, in the third panel, show percentage difference between the second panel count and first panel count.

Labels (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @sobotiv,

in the third panel you have to use both the searches and calculate and display percentages, but the question is: are you sure that the first 20 results (top 20) of the first panel will be the same of second and third panel?

To do this I hint to create only one search with the contents of all panels and then display in each panel the relative field.

Obviously running the same search in three panels you have to use the Post Process Search.

Ciao.

Giuseppe

0 Karma

sobotiv
Loves-to-Learn Lots

Hey,

yes, the amount of results is always the same

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...