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

AGGR

Hi

I have a situation where in have to sum up the quantity and count the batch but with the condition where sum of quantity<>0, please help. Data files attached herewith

Thanks in Advance

Vinayagam !

Labels (1)
2 Replies
stabben23
Partner - Master
Partner - Master

Hi,

sum(aggr(if(SUM({<POSTINGNUM={"<=$(TEST)"}>}Quantity1_MSEG1)>0,COUNT(DISTINCT(BATCH)),0),BATCH))

Anonymous
Not applicable
Author

thanks mate