Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Input from multiple sheets, transform data and Union

Utkarshaggarwal
6 - Meteoroid

Pls refer to the snapshot below.

 

1. I have data input coming from multiple sheets of the same workbook.

2. Each input goes through a few steps of transformation.

3. Data from each set is then combined into 1 big data set using the "Union" tool.

 

Is there a way to do more efficiently? Probably using a macro...?

 

utkarshaggarwal_0-1580290359581.png

4 REPLIES 4
afv2688
16 - Nebula
16 - Nebula

Hello @Utkarshaggarwal,

 

If the files all have the same format you could create a batch macro and pass the filename to your workflow. Each file would go then through the same proces and union after its finished.

 

Remember to set on the configuration of the batch maco the setting to order the output by position (on the interface designer cntl + alt+ d)

 

Regards

Utkarshaggarwal
6 - Meteoroid

Hello @afv2688 ,

 

Thanks for the prompt response. Could you please help me with how should pass the filename into the workflow? I am relatively new to this.

 

Appreciate your help. 

afv2688
16 - Nebula
16 - Nebula

Hello @Utkarshaggarwal,

 

You just need to input a control parameter to the workflow. After connect it to the file input:

 

Untitled.png

 

After this is connected select on the action tool to take the filename (like on the image).

 

Once you have saved it as a macro you just need to pass to the control parameter the filenames and it will perform the same task for every file and come as an output (remember to add the macro output in the end. This would be like on your previous workflow before the input on the union)

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Regards

Utkarshaggarwal
6 - Meteoroid

@afv2688 

 

Thanks for your help.

 

As my requirement was to collate data from multiple worksheets of a single workbook, I passed the Sheet names to the control parameter and then added just 1 more step.

 

In the action tool, I selected "Replace a specific String:" option and entered just the sheet's name (see the image).

 

Worked like a charm!!!

 

utkarshaggarwal_0-1580500659004.png

Labels