Start Free Trial

Alteryx Designer Desktop Discussions

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

Reverse Transpose /Multi Row formula

Jasdev
8 - Asteroid

Hi,

I have a requirement where I need to split 1 code from raw file to individual codes from a reference file. For example code A will be split into Code X, Code Y and Code Z. Their costs are also divided into individual code costs depending on percentages in file. I was able to split the code into different codes with transpose functionality to a certain extent. I am attaching my input and output data screenshot below.

Input
codenametypeitemcalc costcalc Quant
ACategory ACategory AX123NULLNULL
ACategory BCategory BX124NULLNULL
ACategory CCategory C[Null]NULLNULL
ACategory DCategory D[Null]NULLNULL
ACategory A costCategory ANULL10NULL
ACategory B costCategory BNULL90NULL
ACategory C costCategory CNULL0NULL
ACategory D costCategory DNULL0NULL
ACategory A #Category ANULLNULL3
ACategory B #Category BNULLNULL7
ACategory C #Category CNULLNULL0
ACategory D #Category DNULLNULL0
BCategory ACategory AX125NULLNULL
BCategory BCategory BX123NULLNULL
BCategory CCategory CX126NULLNULL
BCategory DCategory D[Null]NULLNULL
BCategory A costCategory ANULL40NULL
BCategory B costCategory BNULL80NULL
BCategory C costCategory CNULL80NULL
BCategory D costCategory DNULL0NULL
BCategory A #Category ANULLNULL8
BCategory B #Category BNULLNULL6
BCategory C #Category CNULLNULL6
BCategory D #Category DNULLNULL0

 

 

 

Output:

Output
codetypeitemcalc costcalc Quant
ACategory AX123103
ACategory BX124907
ACategory CNULL00
ACategory DNULL00
BCategory AX125408
BCategory BX123806
BCategory CX126806
BCategory DNULL00
4 REPLIES 4
IraWatt
17 - Castor
17 - Castor

Hey @Jasdev,

Is this the sort of solution your looking for:

IraWatt_0-1656610563438.png

Any questions or issues please ask :)
HTH!
Ira

Muhai
7 - Meteor

Hi @Jasdev,

 

Hope this works.

Muhai_0-1656611283926.png

 

 

flying008
15 - Aurora

Hi,@Jasdev 

 

Maybe there is have a easy way for you ?

 

录制_2022_07_01_08_14_07_533.gif

grazitti_sapna
17 - Castor

hey @Jasdev 

Let me know if this works out for you. Transpose and take out the nulls and cross tab again.

grazitti_sapna_0-1656667526723.png

grazitti_sapna_1-1656667580630.png

 

Sapna Gupta
Labels
Top Solution Authors