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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Averages in Pivot Table

I have a straight table (snippet attached) that shows integer values, which is what I want. For each column, I have Total Mode set to Average of Rows. I'd like this average to be limited to say 3 decimal places so that it displays without being masked (with #####). Alternately, I'd like the value to be visually clipped and not masked. Any ideas? Thanks.

qvavg.png

3 Replies
sunny_talwar

Try this may be:

If(Dimensionality() = 0, Num(yourExpression, '#,##0.000'), Num(yourExpression, '#,##0'))

and set the format to Expression Default on Number's tab

Not applicable
Author

Thanks. I'll try it out. One modification I might make is to wrap the Dimensionality() function around the format string itself, so I don't have to copy my expression twice (it's long and unwieldy).

sunny_talwar

Ya, that definitely seems like a good idea to test out. Let us know what results you get, I would be very curious to know.

Thanks,

Sunny