Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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