Skip to main content

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Welcome to Qlik Community! Check out our new navigation! FIND OUT MORE
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
MVP & Luminary
MVP & Luminary

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

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

- Marcus