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!

Stay Connected: Your Guide to January Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...

[Puzzles] Solve, Learn, Repeat: Reprocessing XML into Fixed-Length Events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...