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!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...