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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Comma Style in chart title


Good Day All,

I am trying to apply comma style in chart title, see the attachment but failed. However it worked in one chart !

 

, '#,##0')         As far as I know, this is the comma style format, but is it applicable to all styles!! example:

                      Loss= 45411               after comma = 45,411  

                      Profit= 1283987363      after comma = 1,283,987,363 

 

,'#,##0.0%')      As far as I know, this is the percentage format

Kindly explain both styles, how to apply comma's to any number in chart title. Thanks alot.

Alfie,

1 Solution

Accepted Solutions
Agis-Kalogiannis
Employee
Employee

Hi

In order to change the format of the number, you need to use the NUM() function.

An example would be:

num(count(Orders), '#,##0')

and this would give you a comma separated integer in the for or 1,253,423 as you mention above.

A different example:

num(sum(Sales), '#,##0.0%') will give you a percentage with one decimal point.



View solution in original post

4 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

You may need to supply the optional parameters too:

     Num(....., '#,##0', '.', ',')

HTH

Jonathan

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

Thanks Jonathan,

Could you elaborate further. Where is the optional parameter located?
Note, I am using Chart title under General tab to display the figures.  Thanks

Agis-Kalogiannis
Employee
Employee

Hi

In order to change the format of the number, you need to use the NUM() function.

An example would be:

num(count(Orders), '#,##0')

and this would give you a comma separated integer in the for or 1,253,423 as you mention above.

A different example:

num(sum(Sales), '#,##0.0%') will give you a percentage with one decimal point.



Not applicable
Author

'$#,##0'

If you need to express in dollar format, i.e. - with a $ sign, you add $ sign in the beginning (just like above)