Alteryx Designer Desktop Discussions

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

Batch macro join to previous iterations

JuniorS
6 - Meteoroid

Hi, 

 

I am trying to get a macro to join the values onto previous iterations but only using tools that can also be used indb. I do not want to use the transpose tool as it is not indb. How do I get the macro to output as a join of iterations and not a union  using tools that are also indb?

 

i am using a batch macro set up like :

JuniorS_3-1614679386177.png

 

 

desired output:

JuniorS_2-1614679319820.png

 

 

Input looks like :

JuniorS_1-1614679272023.png

 

 

 

 

Current incorrect output:

JuniorS_0-1614679241523.png

 

Thank you

 

3 REPLIES 3
mceleavey
17 - Castor
17 - Castor

Hi @JuniorS ,

 

The short answer is no. Batch macros will run all batches and output a unioned result.

I would suggest posting some sample data and we can build it in a way that will give you your desired output.

 

M.



Bulien

JuniorS
6 - Meteoroid

Hi, Thanks for the response I have attached a sample data set here 🙂

SeanAdams
17 - Castor
17 - Castor

Hey @JuniorS 

 

You've mentioned that you want to do this in-DB - this means that you need to do the transpose in SQL.

 

The SQL equivalent of Transpose is Unpivot - https://codingsight.com/understanding-pivot-unpivot-and-reverse-pivot-statements/

NOTE: Pivot and Unpivot are not supported by all SQL engines, and the syntax differs - so you may decide to do this the easy way in Alteryx using Transpose tool.

 

 
Labels