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

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
timmy
Partner - Contributor III
Partner - Contributor III

count distinct calculation

Hey,

How can i make something like this?(this is wrong, i know but i need only the shipdate-duedate for the distinct orderid)

=count(Distinct OrderID if((ShipDate-DueDate)<=0,1))

TNX

Timmy



1 Reply
Not applicable

Hi

I haven't tested this so apologies if my guess is completely wrong, could you try:

=Count ( Distinct ( If ( ShipDate - DueDate <= 0 , OrderId ) ) )

Regards,