

Creator
2018-04-05
02:18 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
17,014 Views
1 Solution
Accepted Solutions


Specialist
2018-04-05
03:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
4 Replies

MVP
2018-04-05
02:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
16,874 Views


Creator
2018-04-05
02:49 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Looking for Negative numbers as well
16,874 Views


Specialist
2018-04-05
03:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.


MVP
2018-04-05
05:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
16,874 Views
