Free Trial

Alteryx Designer Desktop Discussions

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

Calculate Sum Based on set # of Rows

Wes_Seward
6 - Meteoroid

Hello, I've looked around and haven't found something similar to my need, so hoping someone can assist.

 

Based on sample data loaded, I am looking for a way to calculate a sum for a forward looking view of upcoming years for each Dept.  So every 12 rows I want the data to calculate a sum amount regardless of starting and ending year/month/quarter, and if final set of rows is less than 12, just sum remainder.  Would also like a field to identify starting and ending year/month/quarter values included in the sum.

 

i.e.

Wesley_Seward_0-1651847947217.png

 

Thanks in advance!

1 REPLY 1
Luke_C
17 - Castor
17 - Castor

Hi @Wes_Seward 

 

Here's how:

 

  1. Multi-row formulas to identify the 12 month groupings
  2. Formula to get the year + month
  3. Summarize tool to sum the data and define the range
  4. formula to clean-up the range

Luke_C_0-1651858156514.png

 

 

Labels
Top Solution Authors