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

Announcements
Join us at Qlik Connect 2026 in Orlando, April 13–15: Register Here!
cancel
Showing results for 
Search instead for 
Did you mean: 
niranjana
Creator II
Creator II

Aggregate

Hi,

I need help in framing an aggregate function within set analysis within Sum function:

aggr(Sum({<Year={"$(=Year(Max(Date)))"},Month={"<=$(=Num(Month(Max(Date))))"}>}New_Sales),Product,Pack,Distributor,ATC4,[Ret/Hosp]). 

But it is not working. I need to sum the "New_Sales" within the set analysis and aggregate that sum with dimensions Product, Pack,Distributor, ATC4, Ret/Hosp. This expression is used in a straight table. 

Only aggregate part is throwing error.

Dimension is Product and measure is New_Sales as shown above

Any help is appreciated.

2 Replies
chris_djih
Creator III
Creator III

which error does it throw?

If you found help, mark the correct answer and give some likes to ALL contributors, that tried to help.
niranjana
Creator II
Creator II
Author

it shows zero or dash.

Thanks