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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
rxp03570
Creator
Creator

Number Formatting - Thousands,Millions

Trying to format and represent this format in straight table. The below expression doesn't help

=if(Sum(Value) > 1000000,  num(Sum(Value)/1000000, '#.##0,##M', ',', '.'),

if(Sum(Value) > 1000, num(Sum(Value)/1000,  '#.##0,##K', ',', '.'), num(Sum(Value), '#.##0,##', ',', '.')))

Any inputs please.

Labels (1)
1 Solution

Accepted Solutions
boorgura
Specialist
Specialist

SET vScaleNumber=if(fabs($1)>1E6, num($1/1E6,'$#,##0.000M')

,if(fabs($1)>1E3, num($1/1E3,'$#,##0.000K')

,num($1,'$#,##0')

));

this should do it for negative numbers.

View solution in original post

4 Replies
MK_QSL
MVP
MVP

rxp03570
Creator
Creator
Author

Looking for Negative numbers as well

boorgura
Specialist
Specialist

SET vScaleNumber=if(fabs($1)>1E6, num($1/1E6,'$#,##0.000M')

,if(fabs($1)>1E3, num($1/1E3,'$#,##0.000K')

,num($1,'$#,##0')

));

this should do it for negative numbers.

MarcoWedel
MVP
MVP