Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
DJ55
Contributor III
Contributor III

Auto currency change in Number formatting

Hi Everyone,

I am trying to use number formatting as Money. I have updated the money format to "$#,##0M;-$#,##0M"but values which are not in Millions are reflecting as $0M. These values are in Ks.

Is there any way where I can show values in Millions as well as in Ks. 

I can not use auto number formatting because "$" sign will not reflect in it.

5 Replies
Or
MVP
MVP

As far as I know, if you want the format to be dynamic, you need to use the auto formatting.

You could instead format using if() statements, e.g.

Money(Value,If(fabs(Value) >= 1000000,'$#,##0M;-$#,##0M','$#,##0K;-$#,##0K')

DJ55
Contributor III
Contributor III
Author

Thank you.
But where can we enter this expression . Do I need to put it in Measure or in Formatting?


 

Or
MVP
MVP

This would be in your measure (and you would then keep the formatting on expression default, or whatever it's called, I forget)

DJ55
Contributor III
Contributor III
Author

It is measure expression format type. Thank you I will try this.

DJ55
Contributor III
Contributor III
Author

Hi 
I was trying using this expression but below error is popping up

Error in expression: ')' expected 

This is the expression I used

Money({'$(Total Spend)'},If(fabs({'$(Total Spend)'})>=1000000,'$#,##0M;-$#,##0M','$#,##0K;-$#,##0K'))

Total spend is the variable I have created

Total Spend= Sum(value)/1000000

 

Can anyone help with what I am missing in this expression?