Dashboards & Visualizations

Dashboard Studio Format Values on Chart

chrisboy68
Contributor

Hi, 

I have simple chart visulization, with base SPL

.... | chart sum(cost) AS total_cost BY bill_date

 I'm trying to add a "$" format to total_cost to show on the columns. Tried every Google and ChatGPT trick and I can't get it working. Any ideas? Thanks!

Labels (2)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Do the Google and ChatGPT tricks include this?

... | chart sum(cost) AS total_cost BY bill_date
| eval total_cost = "$" . total_cost

I'm not entirely sure it will work, but worth a try.

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

livehybrid
SplunkTrust
SplunkTrust

I was trying to make this work too but unfortunately @chrisboy68 I'm also a bit of a dead end. 

Prefixing by eval-ing the field for me breaks the chart as its no longer a numeric value, there is no option to add a prefix/suffix in the visualisation; I scoured the non-UI based options from the viz docs (e.g. https://splunkui.splunk.com/Packages/visualizations/Column) but also couldnt find any way to do this, sorry!

🌟 Did this answer help you? If so, please consider:

  • Adding karma to show it was useful
  • Marking it as the solution if it resolved your issue
  • Commenting if you need any clarification

Your feedback encourages the volunteers in this community to continue contributing

0 Karma

chrisboy68
Contributor

Thanks. That was my first try, but still didn't work. 

0 Karma
Get Updates on the Splunk Community!

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...

Auto-Injector for Everything Else: Making OpenTelemetry Truly Universal

You might have seen Splunk’s recent announcement about donating the OpenTelemetry Injector to the ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...