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

Announcements
Join us in Zurich on Sept 24th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
l_denivelle
Creator
Creator

Set negative value to 0 via Number Format

Hi

I have a straight table with expressions. One of my expression is returning positive and negative amounts.

I need the negative amount to be set at 0€.

Is it possible to do it in the Number / Format tab ?

(I know I can put an "IF" in my expression to say "If amount < 0 then 0 else amount" but I want to avoid IF in my expression.

Thanks for your help

Laure

1 Solution

Accepted Solutions
sunny_talwar

Try this

RangeMax(YourExpression, 0)

View solution in original post

5 Replies
Anil_Babu_Samineni

With out IF i don't think it is possible

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
sunny_talwar

Try this

RangeMax(YourExpression, 0)

its_anandrjs
Champion III
Champion III

Without using if you can use mapping load in the script part and may those values and make calculation on the script part.

Hope this helps

Regards

Anand

sunny_talwar

It might be, using RangeMax()

l_denivelle
Creator
Creator
Author

Thanks it works