Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP 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

Please add me Anil_Babu_Samineni to interact faster when reply back. Speak low think High.

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)
sunny_talwar

Try this

RangeMax(YourExpression, 0)

its_anandrjs

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