Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Number formats - showing 100,000,000 as £100m

What would I put in the 'format pattern' box to get 100,000,000 to be displayed as £100m?

Thanks

Greg

1 Solution

Accepted Solutions
ablaas
Contributor II
Contributor II

Those settings only work in charts (not pivot or single tables).

You must calculate the amount in the expression, and use the appropiate number format:

Eg:

Expression:

    sum(Amount)/1000000


Format (in the Format Pattern under the Number tab)

     £ #.##0m; -£ #.##0m

This way, the format will show correctly in the cell

View solution in original post

8 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Try with

Num(100000000,'£ #.##0,00')/1000000

Anonymous
Not applicable
Author

Is it possible to change the 'Format Pattern' setting in the following dialogue box to achieve the same result?

millions.JPG.jpg

Not applicable
Author

Yes, in the script you can modify the SET MoneyFormat variable.

Edit: You can set the format, but not an expression to do calculations.

Anonymous
Not applicable
Author

Not sure I understand.

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Just enter 'm' in the Million symbol box and 'b' in the Billion symbol box. You could also enter k or (000s) in the Thousand box. Qlikview will pick the appropriate symbol and scale the number accordingly in the chart

Oh, and format the number with as £#0

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Anonymous
Not applicable
Author

millions2.JPG.jpg

Hi Jonathan

Thanks for the response.  That's what I thought but nothing happened when I tried that. 

ablaas
Contributor II
Contributor II

Those settings only work in charts (not pivot or single tables).

You must calculate the amount in the expression, and use the appropiate number format:

Eg:

Expression:

    sum(Amount)/1000000


Format (in the Format Pattern under the Number tab)

     £ #.##0m; -£ #.##0m

This way, the format will show correctly in the cell

Anonymous
Not applicable
Author

Thanks Alejandro.