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: 
Not applicable

sum in condition

hi

is there any syntax error with this expression? qlikview doesn't underline it but it always returns 0.

i want to say that if Sum(Dif) is more that zero, the order Id should be counted.(for any Order Id there are some Difs)

Count ( Distinct if ( (sum([Dif])>0), [Id Order] ) )

1 Solution

Accepted Solutions
anbu1984
Master III
Master III

Count ( Distinct if ( (Aggr(sum([Dif]),your_dim)>0), [Id Order] ) )

View solution in original post

8 Replies
anbu1984
Master III
Master III

Count ( Distinct if ( (Aggr(sum([Dif]),your_dim)>0), [Id Order] ) )

Anonymous
Not applicable
Author

try with:

if (sum([Dif])>0, Count(Distinct  [Id Order]))


Marc.

sorrakis01
Specialist
Specialist

hI,

Try this =Count(DISTINCT(if(sum([Dif])>0,[Id Order])))

Regards

Not applicable
Author

Dear mana,

Please use the following. expression:-

count({$<Dif={">0"}>}DISTINCT [ID Order])

Thanks & Regards

Prince Anand

Not applicable
Author

thanks

Not applicable
Author

thanks

Not applicable
Author

thanks

Not applicable
Author

thanks.