Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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.

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
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