Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
jblomqvist
Specialist
Specialist

QlikView Developer Training book AGGR function question

Hello I read the developer book on aggr function.

In one expression you have: max(aggr(sum(LineSalesAmount), CategoryName, ProductName))

Why do you need to dimensions (category and product) when the expression gives the same result with only product field specified?

I get the same result if I just do: max(aggr(sum(LineSalesAmount), ProductName))

Please explain.

2 Replies
maxgro
MVP
MVP

you can get the same result but not always

1.png

Anonymous
Not applicable

i agree with Massimo. And to add one more point,in your chart if you do not have dimension category this expression holds good max(aggr(sum(LineSalesAmount), ProductName))..

But in the chart if you have dimensions both ProductName & CategoryName-- then we have to use max(aggr(sum(LineSalesAmount), CategoryName, ProductName))

because aggregate function works only when you list all the diemensions present in the chart.