Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Creating a sum on each row for the data from Column B to Z.

kariinaracampbell_0-1636040423747.png

 



2 REPLIES 2
Luke_C
17 - Castor
17 - Castor

Hi @kariinaracampbell 

 

Here's how you can do this:

 

  1. Transpose the data. This is what will make this process dynamic, it will turn your month columns into rows. Since the unknown fields box is checked, any new months added will also be handled.
  2. Summarize the data by employee. This produces the summed amount
  3. Join the sum back to the original dataset. Here I have moved the 'unknown fields' box before the sum, so it will always be the last column.

 

Luke_C_0-1636041178046.png

 

 

Jonathan-Sherman
15 - Aurora
15 - Aurora

You could actually also achieve the same result without the join! As @Luke_C has done transposing the data, we could instead then crosstab it back (from row labels to column headers) but also ticking the total column in method for aggregation alongside sum (as seen below).

 

JonathanSherman_0-1636041995371.png

 

Ticking SUM method for aggregation:

JonathanSherman_1-1636042018053.png

 

Ticking Total Column method for aggregation:

JonathanSherman_2-1636042040443.png

 

Kind regards,

Jonathan

 

Labels
Top Solution Authors