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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
capriconuser
Creator
Creator

K,M in values

this is the expression

Num(Sum({<FYear = {$(vmax_year)}>}[GPremium]),'#,##0.0')

and this shows like this

19,239,246,925.0 now i want to show here K , L , M, BN

how i do this .. like this

19 BN

Labels (1)
10 Replies
ogautier62
Specialist II
Specialist II

Hi,

here is the beginning, I let you end :

=if(div(w,1000000000)>0,div(w,1000000000) & ' BN ') &

  if( mod(w,1000000000) >0,div(mod(w,1000000000),1000000) & ' M ')

regards

ChennaiahNallani
Creator III
Creator III

capriconuser
Creator
Creator
Author

i am trying to do in sense not in qlik view

ChennaiahNallani
Creator III
Creator III

capriconuser
Creator
Creator
Author

i use set numerical abbreviation but did not working

ChennaiahNallani
Creator III
Creator III

share sample QVF file

capriconuser
Creator
Creator
Author

kindly check attached file

ChennaiahNallani
Creator III
Creator III

if(Sum({<[Financial Year] = {$(vmax_year)}>}[Gross Premium]) >= 1000000 and

Sum({<[Financial Year] = {$(vmax_year)}>}[Gross Premium]) <1000000000,

Num((Sum({<[Financial Year] = {$(vmax_year)}>}[Gross Premium])/1000000 ),'#,##.0 M'),

        if(Sum({<[Financial Year] = {$(vmax_year)}>}[Gross Premium]) > 1000000000,

        Num((Sum({<[Financial Year] = {$(vmax_year)}>}[Gross Premium])/1000000000 ),'#,##.0 B'),

        Num(Sum({<[Financial Year] = {$(vmax_year)}>}[Gross Premium]))))

ogautier62
Specialist II
Specialist II

may be usefull :

to have the letter :

pick( floor(log( 'your amount') / log(1000)),'k','M','B')

and the number :

floor(log( 'your amount') / log(1000))