Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

IF function

ID
Amount
AAA10
BBB0
CCC3
DDD 0

I would simply want to sum amount with value (not zero) so i use  SUM(IF(Amount > 0, Amount)) but it turns out wrong.Alternatively want to display only ID's with Amount.

Thanks

Kwame

4 Replies
tresesco
MVP
MVP

PFA

CELAMBARASAN
Partner - Champion
Partner - Champion

Try with this

Sum({<Amount={"<>0"}>} Amount)

Which type of chart you are using?

Anonymous
Not applicable
Author

Preferably a pivot table

er_mohit
Master II
Master II

simply try add ID in Dimension

and write expression Sum(Amount)

it gives you the data without zero but make sure that in presentation tab  check on suppress zero values

and if there's other column having data and you want to supress this row where Amount zero then use that column like if it is your 1st column then try to put condition in 2nd column for that partiular field in this way

if(Column(1)=0,0,condition for other column then it automatically supres that row

hope it helps