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

Computing calculated row

Arunima_S
7 - Meteor

Hi,

 

I am trying to calculate only ONE row based on 2 rows of my data set:

Input:

 

ObjectBalance 1Balance 2Balance 3
A100020003000
B200600700
C400500400

 

Output:

ObjectBalance 1Balance 2Balance 3
A100020003000
B200600700
C400500400
D%80%70%43%

 

Where D% = ((Balance(A)-Balance(B)) / Balance(A))*100

 

Is there a way to calculate only one row based on the formula above?

 

Thank you!

1 REPLY 1
echuong1
Alteryx Alumni (Retired)

You can "pivot" your data and then do the calculation. After that, you can "pivot" the data back.

 

echuong1_0-1596117785873.png

 

Labels
Top Solution Authors