Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Change the row into column

Sshasnk
8 - Asteroid

First I have a dataset, below one which is the initial dataset  now I transposed the value by grouping by Investment, Fund and Fund id

Before the transpose of the data:

 

FundsellbuypurchaseCancelInvestmentFund Id
ABC148145489159100154
ABC045801590154
ABC8961480159100154

 

now I transposed the value by grouping by Investment, Fund, and Fund id with three transpose tool and union it back to one

Input:

 

FundNamevalueselectionnumber idFund idInvestment
ABCBuy1451 154100
ABCBuy458 31540
ABCBuy148 8154100
ABCCancel159  154100
ABCCancel159  1540
ABCCancel159  154100
ABCPurchase489  154100
ABCPurchase0 5154100
ABCPurchase01 1540
ABCSell1481 154100
ABCSell0  1540
ABCSell896  154100

 

The above table is transposed data and I performed a few calculations and added two columns selection and number id, now I want to reverse it back with the new columns opposite to

Output:

FundsellbuypurchaseCancelselection_sellselection_buyselection_purchaseselection_cancelnumber_sellnumber_buynumber_purchasenumber_cancelInvestmen
ABC14814548915911      100
ABC04580159  1  3  0
ABC8961480159     85 100
3 REPLIES 3
ShankerV
17 - Castor

Hi @Sshasnk 

 

Hope you are doing good!!!

 

I am trying to crack answer for your problem, however I am not able to understand the logic of the output your need.

 

Especially from Selection sell till Investment. Please explain the logic how you need output, that I can derive in Alteryx and share the output to you.

The investment column in output is little confusing as I don't  know your logic to have the output.

 

Shanker V

Sarreddy
9 - Comet

Hi @ShankerV 

As per my understanding the requirement he want add the base on the suffix the name. if any new names we need in included add  a column level based on name.

 

I have crated by using filter the data, but not sure how we can dynamics. if it is really happy on it.

 

Sarreddy_0-1668172869333.png

 

  

 

Sshasnk
8 - Asteroid

@ShankerV @Sarreddy updated the question

Labels