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.
SOLVED

Join horizontal data set to vertical dataset

Sshasnk
8 - Asteroid

I have two datasets and I have to join them but the challenge is one is vertical and another one is horizontal

 

Input:

 

Dataset 1:

NumbersampFundTypeNamevalueSelection type
1 ABCMSell123Yes
1 ABCMBuy1456Yes
 2ABC Buy0No
 2ABC Buy0No
 2ABC Sell0No
 3ABC Sell0No
 3ABC Call0No
 3ABC Call0No
 3ABC Call0No
 3ABC Put0No
 3ABC Put0No
 3ABC Put0No

 

Dataset 2:

FundSellBuyCallPut
ABC123145600
ABC0000
ABC0000

 

The rule is very simple I have to join based on fund, name, and value. 

After that, I have to paste the value of the selection type in front

 

Output:

FundSellBuyCallPutSelection type sellSelection type BuySelection type CallSelection type Put
ABC123145600YesYesNoNo
ABC0000NoNoNoNo
ABC0000NoNoNoNo

 

2 REPLIES 2
grazitti_sapna
17 - Castor

Hi @Sshasnk , here is my solution to your problem.

 

grazitti_sapna_0-1668158691898.png

 

Sapna Gupta
DanFlint
8 - Asteroid

Hi @Sshasnk 

 

By using transpose and cross tab tools, I have been able to join the 2 datasets together and summarise to the output view that you need.

The dynamic rename tool can also be really helpful when you need to add the same string to a number of field names

DanFlint_1-1668158581779.png

 

Hope this helps!

Labels