Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How the number format conversion will automatically changes from Mn\Bn....?

Hi All,

In my current dashboard i want to display the sum(revenue) figure.In such case based on the number count it should automatically change the number format text from Million/Billion .

The current expression used for that: text(money(Sum(dollar_value_sold)/1000000000)&'Mn')

Regards,

Venugopal G

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Not quite sure if I got your request right, maybe like this?

dynamically changing scale in text box

View solution in original post

4 Replies
swuehl
MVP
MVP

Not quite sure if I got your request right, maybe like this?

dynamically changing scale in text box

Not applicable
Author

Hi Swuehl,

Thanks for your reply.....

Awesome it is working fine for me..Need small change in Expression if possible

I want to display the number as separate text object and Bn\Mn conversion as separate text.If you provide the expression that will be great help.

Mn.PNG

Above image for your reference.

Regards,

Venugopal G

swuehl
MVP
MVP

If you look at this expression sample for example:

=num( sum( revenue) /pow(1000,floor(log10(fabs(sum(revenue)))/3)),'##0.000')

& pick(floor(log10(fabs(sum(revenue)))/3)+1,'',' thousand',' million',' billion',' trillion')

you can easily split it into two parts / text box expressions:

=num( sum( revenue) /pow(1000,floor(log10(fabs(sum(revenue)))/3)),'##0.000')


= pick(floor(log10(fabs(sum(revenue)))/3)+1,'',' thousand',' million',' billion',' trillion')

MK9885
Master II
Master II

I've been trying to do same thing in Qlikmaps, represent the number in M but this seems not to work. any idea or is this only valid for Straight Table?