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 (2)
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!

Accelerate Service Onboarding, Decomposition, Troubleshooting - and more with ITSI’s ...

Accelerate Service Onboarding, Decomposition, Troubleshooting - and more! Faster Time to ValueManaging and ...

New Release | Splunk Enterprise 9.3

Admins and Analyst can benefit from:  Seamlessly route data to your local file system to save on storage ...

2024 Splunk Career Impact Survey | Earn a $20 gift card for participating!

Hear ye, hear ye! The time has come again for Splunk's annual Career Impact Survey!  We need your help by ...