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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Franco2
Contributor II
Contributor II

CUMULATIVE SUM with partition

Hi,

I have the following graphs:

Franco2_0-1650986066576.png

 

1,2 and 3 are correct.

The first one shows my variable SPEND by months and the second shows it's division by the dimension SEG.

The formula in both is the same: Sum(SPEND).

Now I want to show the movile sum of the variable SPEND in a six months term.

 

The third graph shows it without any other partition and it works perfectly. The formula is 

rangeSUM(above(sum(SPEND),0,6))

But when I want to open it by the dimension SEG (4TH GRAPH ) it doesn't work properly. I've tried with the following formula:

AGGR(rangeSUM(above(sum(SPEND),0,6)),SEG,Month)

but it also doesn't work.

The 4th graph should look like this:

 

Franco2_1-1650986066811.png

 

Thank you in advance!!

 

Labels (6)
1 Reply
marcus_sommer

You could try it with: rangeSUM(above(total sum(SPEND),0,6))

- Marcus