Skip to main content
Nintex Community Menu Bar
Question

Best way to format currency in Charts

  • July 11, 2024
  • 2 replies
  • 20 views

Forum|alt.badge.img+9

I’d like to truncate the currency totals in my charts to round to the thousands and then if its in the millions switch from K to M. 

What would be the best way to do this in Charts and Rich Text Components?

This topic has been closed for replies.

2 replies

Forum|alt.badge.img+10

Sam,

You can do this with Model UI Formula fields. You can format the totals and then use an IF statement to choose when to show one or the other. Here is a page that demonstrates this:






























models.loaded








ROUND({{{sumAmount}}})


“$” + VALUE(ROUND({{sumAmount}}/1000)) + " K"


“$” + VALUE(ROUND({{sumAmount}}/1000000)) + " M"


IF({{sumAmount}}/1000000>=1,{{TotalMillions}},{{TotalThousands}})












{{Model.labelPlural}}


Home












<p><span style=“font-size:28px;”><span style=“color:#ffffff;”>Opportunity Total Amount</span></span></p>

<p><span style=“font-size:28px;”><span style=“color:#ffffff;”>Default: {{sumAmount}}</span></span></p>

<p><span style=“font-size:28px;”><span style=“color:#ffffff;”>K: {{TotalThousands}}</span></span></p>

<p><span style=“font-size:28px;”><span style=“color:#ffffff;”>M: {{TotalMillions}}</span></span></p>

<p><span style=“font-size:28px;”><span style=“color:#ffffff;”>S: {{SwitchFormat}}</span></span></p>




































sum


















&n


Forum|alt.badge.img+9
  • Author
  • July 11, 2024

Thanks for the reply Bill! I was hoping there would be an easier way that I just couldn’t figure out. But, I’ll just have to do this.

Appreciate it!