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.

Multiple Row Sum and statement Condition

Tommy23
7 - Meteor

Hello, 

 

I would like to Sum two value ( Revenue and Margin) and having a new row when it is wrote " Marge" with the result of the sum

 

Input:

CategoryNumber
Margin333
Below EBID2024
EBIT2365
Revenue650

 

I would like to sum Revenue and Margin (results will be 983 in the category Marge)

 

Thanks in advance for you help

 

Output:

 

CategoryNumber
Margin333
Below EBID2024
EBIT2365
Revenue650
Marge 983
1 REPLY 1
DataNath
17 - Castor
17 - Castor

Hey @Tommy23 here's one way you could go about this - 

 

1) Isolate the rows of interest

2) Summarize to get the total

3) Add the new 'Category'

4) Union this new total back on to the main dataset

 

DataNath_0-1676454965623.png

Labels
Top Solution Authors