Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

running a workflow twice based on two different inputs

YLYONG
9 - Comet

Hi Alteryx Community,

 

Need your help on this:

I need to run this workflow and compare the output based on two inputs (see arrows).

 

My idea is I need to copy and paste this entire workflow.

 

The first iteration is based on "PREVIEW"

The second iteration is based on "ACTUAL" after  manually select and change to field "ACTUAL"

 

Is there a more efficient way to to do this?

 

Thank you

YLYONG_1-1630148506017.png

YLYONG_2-1630148574488.png

YLYONG_3-1630148638710.png

 

YLYONG_0-1630148341380.png

 

3 REPLIES 3
danilang
19 - Altair
19 - Altair

Hi @YLYONG 

 

You can copy the part that duplicates, i.e. all the tools after Select (38) and put them in a standard macro.  Then include the macro twice in your main workflow both connected to the output of the tool before Select (38).  In the configuration of the first macro select [Preview] as the the field to map to the input field. In the config of the second one map [Actual].  The macro will run twice and then you can join/union(depending of how you compare them) the outputs to validate the preview against the actual.

 

Dan

YLYONG
9 - Comet

YLYONG_0-1630934488403.png

 

YLYONG_1-1630934625872.png

 

Thank you @danilang  for your input.

 

I created input and output macros however something is not working in the workflow.

 

I have a number of input dataset in the workflow and does macro work in this situation?

 

YLYONG_2-1630934983963.png

YLYONG_3-1630935013800.png

 

 

 

YLYONG
9 - Comet

does macro work if there are other input files (which doesn't need to be updated) within the macro?

 

Labels