Qlik Community

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Support Case Portal has moved to Qlik Community! Read the FAQs to start exploring Support resources.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Short number

All,

Setting thousand/million/billion symbol does not work with straight table/pivot table charts. I am using a pivot chart to display numbers and would like to achieve the same short number format. E.g:

123 -> 0.1K

12345 -> 1.2K

1234567 -> 1.2M

12345678910 -> 1.2B

Any smart way to achieve this?

Thank you!

6 Replies
t_chetirbok
Specialist
Specialist

Hello!

I'm not sure that it's smart, but it works:

round(if(VALUE/1000000000>=1, VALUE/1000000000,

               if(VALUE/1000000>=1, VALUE/1000000,

                    if(VALUE/1000>=1, VALUE/10000, VALUE/1000))), 0.01) &

if(VALUE/1000000000>=1, ' B',

               if(VALUE/1000000>=1, 'M', ' K'))

Not applicable
Author

Tatsiana, thanks for the attempt.  This problem has to be solved in the "custom formatting" definition.  The developers need to address this asap using the Excel custom number formatting pattern, or Qlik will not be getting much business from Excel users.

Not applicable
Author

Hi,

Thanks for the reply. It does work but i already have a massive nested IF statement. Adding another set of nested IFs would not be the best practice. Any other idea?

Thanks.

oknotsen
Master III
Master III

You get my vote for joke of the day.

No offence, but this tiny thing is not the reason that will keep people using XLS for the wrong reason. If it would, those people clearly have no clue what Qlik has to offer them.

May you live in interesting times!
Not applicable
Author

Thanks, this is very helpful. Has anyone ever tried to code an Excel

custom format such as "#,##0.0,,;[red](#,##0.0,,);-" ? It takes about 10

seconds to write in Excel - it means: 0s displayed as "-", negative

numbers displayed in red font in parentheses, numbers all divided by a

million, one decimal of precision.