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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

expression help


Hi,

This will probably be simple but we have the following expression:

avg([Tenancy_Length_Days])/365

It works; however, currently provides a number with about 10 decimal points (8.4483735659404). Can yone advise how to add to this so it only shows 2 decimal points?

Cheers

Chris

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

round ( avg([Tenancy_Length_Days])/365 , 0.01 )

View solution in original post

5 Replies
Anonymous
Not applicable
Author

round ( avg([Tenancy_Length_Days])/365 , 0.01 )

sujeetsingh
Master III
Master III

Just go to the Number Tab in properties and set Fixed to Decimals =2

Not applicable
Author

Go to properties and then to number tab.Select the expression and then in number expression setting select fixed to and change the number to 2.

This will work.

If it is not a chart, use round functin as mentioned by Bill.

rustyfishbones
Master II
Master II

NUM(AVG([Tenancy_Length_Days])/365,'#,##0.00')

dmohanty
Partner - Specialist
Partner - Specialist


Hi,

Go to Properties of the Chart>>Number Tab>>Select the expression>>Number Format settings 'Fixed To' : 2 decimals