Alteryx Designer Desktop Discussions

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

Summing of consecutive rows to find quarterly data from mothly data

gurujo
7 - Meteor

Hi,

 

 

I woud like to know how i can find quarterly sums  from monthly data of different Years. using muti row formula tool.

3 REPLIES 3
atcodedog05
22 - Nova
22 - Nova

Hi @gurujo ,

 

Here is a workflow for the task.

 

Input : file provided by you.

Output : 

atcodedog05_0-1601740452291.png

Hope this was what you were looking for

 

Workflow :

atcodedog05_2-1601740528640.png

 

Hope this helps 🙂

 

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

 

 

 

jdunkerley79
ACE Emeritus
ACE Emeritus

If you want to do this using the MultiRow formula:

IIF(LEFT([Row-1:Year-Month],4)=LEFY([Year-Month],4)
    AND Ceil(ToNumber(RIGHT([Row-1:Year-Month],2))/3)
      = Ceil(ToNumber(RIGHT([Year-Month],2))/3),
  [Row-1:QuarterSum],
  0)
+ [Sum_Value]

This will reset every quarter but assumes the data is in ascending order so you may need a sort before it.

 

Sample attached

 

Hope it helps

 

atcodedog05
22 - Nova
22 - Nova

Happy to help 🙂

 

Cheers and happy analyzing 😀

Labels