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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
vikas_nandanwar
Creator II
Creator II

How to use less than and = function

Hi,

Expression for less than and equal to function

I want a logical  condition as

If Sum of Amount is less than zero then zero else sum of Amount

Column name as Amt

thanks

Vikas

1 Solution

Accepted Solutions
tresesco
MVP
MVP

RangeMax( Sum(Amt), 0)

If you want to understand using IF, try like:

If( Sum(Amt)<0, 0, Sum(Amt) )

If ( <condition>, what when true, what when false)

View solution in original post

3 Replies
tresesco
MVP
MVP

RangeMax( Sum(Amt), 0)

If you want to understand using IF, try like:

If( Sum(Amt)<0, 0, Sum(Amt) )

If ( <condition>, what when true, what when false)

Anil_Babu_Samineni

Or

If(Sum(Amount) < 0, 0, Sum(Amount))

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
vikas_nandanwar
Creator II
Creator II
Author

Thanks This worked