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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out 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

Labels (1)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

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
tresB
Champion III
Champion III

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
MVP
MVP

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