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

2 decimal points on 'text in chart'

We have the following expression on the text of our chart:

=Avg([Q5 The attitude of the operative])=

The chart is a gauge ranging from 0-10. The expressions gives a score which is along the lines of 9.256328; however, we want it fixed to 2 decimal places, i.e. 9.25


Can anyone suggest/highlight how we might do this? Assume it done by editing expression of 'text in chart' but struggling...

Any help would be appreciated.

Chris

1 Solution

Accepted Solutions
Not applicable
Author

Hi Chris,

You can use the function Num(), the example would be like this:

    Num( Avg([Q5 The attitude of the operative]), '###,###.##' )

Try it, should work.

View solution in original post

4 Replies
Not applicable
Author

Hi Chris,

You can use the function Num(), the example would be like this:

    Num( Avg([Q5 The attitude of the operative]), '###,###.##' )

Try it, should work.

Anonymous
Not applicable
Author

Properties->Number->Fixed Decimals 2

Not applicable
Author

you can use the num() function to fix that

marthacano01
Partner - Creator
Partner - Creator

Did you try?

=num(Avg([Q5 The attitude of the operative]),'###.##')