Dashboards & Visualizations

Is it possible to have Single value with Trendline for Percentage When I am using eval to calculate Percentage?

abi2023
Path Finder

index=main sourcetype=_json status="True" | stats count(status) as True by name | append [| search index=main sourcetype=json status="False" | stats count(status) as False by name]  | append [| search index=main sourcetype=json status="*" | stats count(status) as Total by name] | stats sum(True) as True sum(False) as False sum(Total) as Total max(Performance) as Performance by name | eval Percentage=round(((True/Total)*100),0) 
| fields  Percentage

Is it possible to show trendline and if Percentage up or down compart to last month.


0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

@abi2023 - You would use timechart instead of stats with span=1mon.

But you are using by name, groupby field won't work with a single value chart. You could though a table with trendlines if you want to use groupby. You can find example of this inside the App called Splunk Dashboard Examples on Splunkbase.

 

I hope this helps!!!

0 Karma
Get Updates on the Splunk Community!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...