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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
niranjana
Creator
Creator

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
Creator
Author

it shows zero or dash.

Thanks