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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
KevinJ
Contributor III
Contributor III

KPI CURRENCY FORMAT

Hi 

I cannot format my Amount. Currently it is like this and I want to format it like this:

-2.32 B
-2.32 M

-2.32 K

 

This is my current script right now. 

sum({$<[Item Type]={'Service'},[PHPCurrency]={'PHP'}>}[Subtotal. Std.])

KevinJ_0-1705461459745.png

 

Labels (6)
3 Replies
Digvijay_Singh

You may do something like this to get the desired results - 

Num(if(sum({$<[Item Type]={'Service'},[PHPCurrency]={'PHP'}>}[Subtotal. Std.])/1000000000>1,sum({$<[Item Type]={'Service'},[PHPCurrency]={'PHP'}>}[Subtotal. Std.])/1000000000,
if(sum({$<[Item Type]={'Service'},[PHPCurrency]={'PHP'}>}[Subtotal. Std.])/1000000>1,sum({$<[Item Type]={'Service'},[PHPCurrency]={'PHP'}>}[Subtotal. Std.])/1000000,
if(sum({$<[Item Type]={'Service'},[PHPCurrency]={'PHP'}>}[Subtotal. Std.])/1000>1,sum({$<[Item Type]={'Service'},[PHPCurrency]={'PHP'}>}[Subtotal. Std.])/1000))),
if(sum({$<[Item Type]={'Service'},[PHPCurrency]={'PHP'}>}[Subtotal. Std.])/1000000000>1,'#,##0.0 B',
if(sum({$<[Item Type]={'Service'},[PHPCurrency]={'PHP'}>}[Subtotal. Std.])/1000000>1,'#,##0.0 M',
if(sum({$<[Item Type]={'Service'},[PHPCurrency]={'PHP'}>}[Subtotal. Std.])/1000>1,'#,##0.0 K'))))

Rohan
Partner - Specialist
Partner - Specialist

Hi Kevin,

You simply need to adjust the numformat varaible in the main section to :

SET NumericalAbbreviation='3:K;6:M;9:B;12:T;15:P;18:E;21:Z;24:Y;-3:m;-6:μ;-9:n;-12:p;-15:f;-18:a;-21:z;-24:y';

& set your format to Auto in the KPI.

 

Regards,

Rohan.

Chanty4u
MVP
MVP

Try this

Num(sum({$<[Item Type]={'Service'}, [PHPCurrency]={'PHP'}>}[Subtotal. Std.]), '£#,##0.00 B')