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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
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 !

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