Alteryx Designer Desktop Discussions

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

Performing calculations in multiple columns

karolyb
5 - Atom

Hello All,

 

Could you please help me figure out how can I perform the following calculation in Alteryx?

 

My original data set looks like this:

IDABCDTotal
ID15103220
ID24781130
ID3142033269
ID46233142
ID5573318

 

I'd like to calculate the percentage of row total in each cell to get this outcome:

ID1[A] = 5/20 | ID1[B] = 10/20 etc...

 

Desired outcome:

IDABCDTotal
ID10.250.50.150.11
ID20.130.230.270.371
ID30.20.290.480.031
ID40.140.050.790.021
ID50.280.390.170.171

 

Thank you!

 

 

5 REPLIES 5
binuacs
20 - Arcturus

@karolyb one way of doing this

image.png

apathetichell
18 - Pollux

multi-field formula. select all of your non-total numeric fields.

select change type to double (or fixed decimal).

unclick new (unless you want to keep the raw data)

[_CurrentField_]/[Total] in formula.

 

apathetichell
18 - Pollux

Screenshot (1558).png

Qiu
20 - Arcturus
20 - Arcturus

@apathetichell 
Nice use with Multi-Field Formula tool😁

karolyb
5 - Atom

Thank you for the solutions!

Labels