Important Community update: The process for changing your account details was updated on June 25th. Learn how this impacts your Community experience and the actions we suggest you take to secure your account here.

Alteryx Designer Desktop Discussions

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

Calculating each row of a column with common divisor and multiplier for that column

Tej_Singh
8 - Asteroid

Hi All

 

I have a situation where I have the following data which has a divisor and multiplier value for each column. I want to calculate each cell value of a column using formula [Row value]\[Divisor]*[Multiplier]. Divisor and Multiplier changes from one column to another. On top number of columns can vary from one data set to other.

 

For Column 1/1/2020 Row A the calculation should be 1/1*1, Row B will be 2/1*1 and so on. For column 1/2/2020 Row A calculation should be  11/10*5, Row B will be 12/10*5 and so on, Column 1/3/2020 Row A calculation should be 21/5*10, Row B will be 21/5*10  and so on.

 

 1/1/20201/2/20201/3/20201/4/20201/5/2020
A111213141
B212223242
C313233343
D414243444
E515253545
F616263646
G717273747
H818283848
Divisor110536
Multiplier151057

 

Using the calculation and divisor and multiplier of each column the output should come as shown below: 

 

 1/1/20201/2/20201/3/20201/4/20201/5/2020
A1.005.5042.0051.6747.83
B2.006.0044.0053.3349.00
C3.006.5046.0055.0050.17
D4.007.0048.0056.6751.33
E5.007.5050.0058.3352.50
F6.008.0052.0060.0053.67
G7.008.5054.0061.6754.83
H8.009.0056.0063.3356.00
Divisor110536
Multiplier151057

 

Any suggestions how to achieve this using Alteryx Designer?

4 REPLIES 4
Qiu
21 - Polaris
21 - Polaris

@Tej_Singh 

Still working on the Fixed Decimal place though. Something is wrong with it.

Capture512.PNG

afv2688
16 - Nebula
16 - Nebula

Hello @Tej_Singh ,

 

how about this? Transpose and crosstab, so handy those tools 🙂

 

Untitled.png

 

Regards

Tej_Singh
8 - Asteroid

THANK YOU @Qiu AND @afv2688 ! Both solutions are working fine! Appreciate your help on this 🙂

Qiu
21 - Polaris
21 - Polaris

@Tej_Singh 

Glad to help and thank you for the accept mark 😁

Labels