Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
ashwath26_95
Contributor II
Contributor II

Row by Row results when using Aggr

Hi,

Please find the attached image.

I have used max(Aggr(Sum(Sales),region,segment)) to get the total Sales by each region per segment. But the problem is i am getting the value only for one record and not for all. You can check it in the image. 

My requirement is that the total for each region,segment should be displayed for each row.

Qlik Doubt.PNG

Labels (2)
4 Replies
anushree1
Specialist II
Specialist II

Could you share the sample data

ashwath26_95
Contributor II
Contributor II
Author

Source data ... 

anushree1
Specialist II
Specialist II

Is this the output you are looking for?

marcus_sommer

Per default aggr returned a distinct valuelist  but you could add a NODISTINCT like:

max(Aggr(NODISTINCT Sum(Sales),region,segment))

- Marcus