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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Count difference

Hi,

I have data and wanted to show count of dates if SoldAmt >0 or NULL. If I select any date and count should not consider the selection like ignoring.

Attached data is the example and count value should be 50, but when I use this function I get 52

=NUMericCOUNT({<WeekDate=>}SoldAmt)

Can you pls suggest.

Thanks,

Labels (1)
1 Solution

Accepted Solutions
JonnyPoole
Former Employee
Former Employee

Here is a formula that will work for you:

=sum( {$<WeekDate=>} if (aggr( sum( {$<WeekDate=>} SoldAmt), WeekDate)>0,1))

Capture.PNG.png

View solution in original post

2 Replies
JonnyPoole
Former Employee
Former Employee

Here is a formula that will work for you:

=sum( {$<WeekDate=>} if (aggr( sum( {$<WeekDate=>} SoldAmt), WeekDate)>0,1))

Capture.PNG.png

Not applicable
Author

It is working as expected and good solution.

Thanks,