Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
解決済み

Performing calculations in multiple columns

karolyb
アトム

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件の返信5
binuacs
アルクトゥルス

@karolyb one way of doing this

image.png

apathetichell
ポルックス

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
ポルックス

Screenshot (1558).png

Qiu
20 - Arcturus
20 - Arcturus

@apathetichell 
Nice use with Multi-Field Formula tool😁

karolyb
アトム

Thank you for the solutions!

ラベル