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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
tanjavarwijk
Contributor III
Contributor III

Set Analysis question

Why gives these 2 rows not the same answer ?

Count(DISTINCT(if((Quantity<>0 and CYFlag=1 and [Shipping Agent Code]<>'KASSA'),Document_Nr)))

Count({$<CYFlag={1},[Shipping Agent Code]-={'KASSA'},Quantity-={0}>}DISTINCT(Document_Nr))

2 Replies
MK_QSL
MVP
MVP

Try

Count({$<CYFlag={1},[Shipping Agent Code]-={'KASSA'},Quantity={">0"}>}DISTINCT(Document_Nr))

tanjavarwijk
Contributor III
Contributor III
Author

Quantity can also be negative