We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

How to update or create an excel file using batch macro

Lumjing
8 - Asteroid

Hi I have a column with SQL query and I am using a batch macro (where I have used dynamic input tool to run the sql query. 5 rows of sql query execution. Every time I run the workflow I want a excel file where the output of the all the sql to be update in excel file one after another. Can you please let me know how to achieve this. A sample of the input file is as below.

 

SQL code
Select Distinct(Name) from table xyz
Select Distinct(Name) from table xyz
Select Distinct(Name) from table xyz
Select Distinct(Name) from table xyz
Select Distinct(Name) from table xyz
1 REPLY 1
alexnajm
18 - Pollux
18 - Pollux

Whatever unique value you have in a column to separate the 5 queries can be used as your tab name in the Output Data tool - if you don't have one, create one using a RecordID tool or a Multi Row Formula tool!

Labels
Top Solution Authors