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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to restrict values to 2 decimal points without rounding it off?

Hi,

I need to restrict the values on a table upto 2 decimal points with rounding off the values.

Ex: if value = 0.556, I need the value as 0.55 and not 0.56.

I tried using the Floor(value, 0.01) function and Left(Value,4), But these functions doesn't give the desired output.

- Am also suppressing the null values that is one of the reasons am facing issue.

Can anyone please help me out here?

Thanks

Labels (1)
4 Replies
sunny_talwar
MVP
MVP

Would you be able to share a sample where you have this problem?

Anil_Babu_Samineni
MVP
MVP

Floor() will helps you. Can you share image?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
jothimala
Partner - Contributor II
Partner - Contributor II

Hi!!

Try using this

num(expression,'#,##.##');

or

num(expression,'#,##.00');

ogautier62
Specialist II
Specialist II

Hi,

floor(0.556, 0.01) gives 0.55

what's wrong for you ?

regards