Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
dhavalvyas
Contributor III
Contributor III

What is expression to convert 10,00,000 into 1 million and 100,000,000 into 100 million

Hi,

Suppose I have count of policyno is 10,00,000

1> I want it in million, i.e. 10,00,000 = 1 million.

Suppose I have count of policyno is 100,000,000

1> I want it in 100 million, i.e. 100,000,000 = 100 milloin

My expression is COUNT(POLICYNO)

so how to modify expression for a

3 Replies
arvind_patil
Partner - Specialist III
Partner - Specialist III

HI Dhaval,

Please add below code into your expression:

COUNT(POLICYNO)/1000000


Thanks,

Arvind patil

ramyasaiqv
Creator II
Creator II

Hi Dhaval,

Try setting it on the "Number" tab of the Chart.

Chart Properties-Number- Million Symbol.

Attached screen shot for reference. Hope this helps.

devarasu07
Master II
Master II

Hi,

You can try like this in your expression,

=If(Count(POLICYAMT)/100000000 > 1,Num(Count(POLICYAMT)/100000000,'$#,###Billion'), Num(Count(POLICYAMT)/1000000,'$#,###million'))

Capture.JPG

Best solution will be @Macro suggestion at back-end script method,

Re: Number formatting - millions to billions