Alteryx Designer Desktop Discussions

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

Batch Macro/ Iterative Macro

BRRLL99
11 - Bolide

Hi

I have following data set , I'm looking to Map particular columns with different dataset

 

old parentold childold quantitychildquantitychild2quantity2child3quantity3
SD0789SD00341SD00551SD00441  
SD0445SD00670.5SD00992    
SD0993SD00782SD00883SD00342SD00224

 

datatype
SD0034Black
SD0067White
SD0078Black
SD0055Black
SD0099Black
SD0088White
SD0044White
SD0034White
SD0022White

 

 

Expected Out:

 

I can get my expected out using crosstab, but in my original data, I have 10 columns and 1 million rows ,

I'm looking for my expected output in Batch or iterative macro

@BS_THE_ANALYST @PhilipMannering 

 

old parentold childold quantitytypechildquantitytypechild2quantity2typechild3quantity3type
SD0789SD00341BlackSD00551BlackSD00441White   
SD0445SD00670.5WhiteSD00992Black      
SD0993SD00782BlackSD00883WhiteSD00342BlackSD00224White

 

3 REPLIES 3
ArtApa
Alteryx
Alteryx

Hi @BRRLL99 - If the number of columns is fixed, you can simply have multiple Joins and Unions in your workflow to achieve a desired outcome. No need to overcomplicate. 

BRRLL99
11 - Bolide

my number of columns changes based on the my previous iteration Macro

that's why im looking for any macro, which can map dynamically

Christina_H
14 - Magnetar

It isn't a macro, but I think this does what you need

Christina_H_0-1682505745608.png

 

Labels