Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Make calculations based on multiple columns

jsamstad
7 - Meteor

Hello!

 

I currently have a table with a categorical variable in the first column and then a series of periods to the right. I'd like to perform calculations based on Type for each Period (eg. If Type = A and Period = 9, then give me this calculation: ( 1 / SUM( 2 + 3 ) ) or If Type = C and Period = 10, then give me this calculation: ( 4 / SUM( 2 + 3 + 4 ) ). I attached an example to help clarify. Thanks in advance!

 

TYPEPERIOD 9PERIOD 10
A12
B23
C34
3 REPLIES 3
ShankerV
17 - Castor

Hi @jsamstad 

 

Is this your dataset sample trying to test or you need to apply this for huge dataset.

 

 

ShankerV
17 - Castor

@jsamstad 

 

If you need to apply for huge dataset, please explain the logic in detail.

We can achieve for the same.

jsamstad
7 - Meteor

It starts out larger but is summarized into categories and then using the cross tab tool to unpivot the periods so the ending table is 8 x 13. 

Labels
Top Solution Authors