Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
kirsten_dc
Partner - Contributor II
Partner - Contributor II

Rangesum by dimension

Hi all,

I have some problems with the following table:

 Unbenannt.PNG

I have the two dimensions 'WeekNumber' and 'Branch' and some expressions.
In my last expression I want to show the cumulated sales per 'Branch' until this 'WeekNumber'.

I used this formula: 

 

RangeSum(Above(total Sum({$<gYear={$(=Max(gYear))}>}fvGrossSales) , 0, gWeek))

 

As you can see, it cumulates everything without regarding for the branches. I already tried using aggr() but I do not get the right solution.

Any advices?

 

Regards 
Kirsten

Labels (3)
1 Reply
Brett_Bleess
Former Employee
Former Employee

Kirsten, I am afraid I am not a Set Analysis guru myself, so the best I have is a Design Blog post that has some info and some additional posts related to different features of Set Analysis, so hopefully they may help you figure it out:

https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344

https://community.qlik.com/t5/Qlik-Design-Blog/Set-Analysis-in-the-Aggr-function/ba-p/1463822

My post will also kick things back up in the list too, so someone else that is better at this may see things and have some direct ideas on where things are going wrong too.  Sorry I am not more help to you on this one.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.