We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Accumulated Sum

Shank
8 - Asteroid

Hi All,

 

I need to calculate the accumulated SUM for next four weeks. but i am facing little difficulty to achieve it could some one help on this.

 

Below is the scenario and i am looking for Accumulated Sum column to be calculated and logic is in Remarks

 

YearWeekMatEx_MatSumAccumulated SumRemarks
2020441A1001047Running Sum of week Year 202045-202048
2020451A1501249Running Sum of week Year 202046-202049
2020461A1251236Running Sum of week Year 202047-202050
2020471A314922Running Sum of week Year 202048-202050
2020481A458587Running Sum of week Year 202049-202050
2020491A352600Running Sum of week Year 202050
2020501A1120Zero as we don’t have value
2020441B1231194Running Sum of week Year 202045-202048
2020451B365953Running Sum of week Year 202046-202049
2020461B4521025Running Sum of week Year 202047-202050
2020471B112913Running Sum of week Year 202048-202050
2020481B265648Running Sum of week Year 202049-202050
2020491B124524Running Sum of week Year 202050
2020501B5240Zero as we don’t have value
6 REPLIES 6
atcodedog05
22 - Nova
22 - Nova

Hi @Shank 

 

Here is a workflow for the task.

Output:

atcodedog05_0-1603718516130.png

 

Workflow:

atcodedog05_1-1603718296034.png

Hope this helps 🙂


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

 

atcodedog05
22 - Nova
22 - Nova

Hi @Shank 

 

I just did a cross validation.

atcodedog05_0-1603718616078.png

Your below accumulated sum are wrong it doesnt match the remark too.

atcodedog05_1-1603718667727.png

Hope this helps 🙂

 

Qiu
21 - Polaris
21 - Polaris

@Shank 
I think MultiRow Tool is what we need here.

R1: Added the sort to be sure.

 

1016-Shank.PNG

atcodedog05
22 - Nova
22 - Nova

Happy to help 🙂 @Shank 

 

Cheers and Happy Analyzing 😀

Shank
8 - Asteroid

@atcodedog05 Thanks for the solution

Qiu
21 - Polaris
21 - Polaris

@Shank 
Warm note. Multiple acceptance is allowed.😁

Labels
Top Solution Authors