Dashboards & Visualizations

How to format the floating values displayed in the charts?

GaryZ
Path Finder

GaryZ_0-1680279047697.png

Is there a way to format the floating values displayed on the charts?

 

Labels (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Round is not valid within the stats command.  That's why I said to add it after stats.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

GaryZ
Path Finder

Hello Rich,  Thank you for getting back so quickly.  Can I use round with stats?

ie. | stats avg(A), avg(B) by hardware, build 

 

When I try

Error in 'stats' command: The argument 'round(avg(A),2)' is invalid.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Round is not valid within the stats command.  That's why I said to add it after stats.

---
If this reply helps you, Karma would be appreciated.

GaryZ
Path Finder

Thank you!!

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Use the round function after the stats or chart command.

| eval foo = round(foo, 2)

 

---
If this reply helps you, Karma would be appreciated.
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 ...