Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
RÉSOLU

Calculate Sum Based on set # of Rows

Wes_Seward
Météoroïde

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 RÉPONSE 1
Luke_C
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

 

 

Sondage
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Étiquettes