Alteryx Designer Desktop Discussions

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

Dynamic output filename

chrissgtan
7 - Meteor

Hello Alteryx Community,
Could inspect the attached yxmd, please?
I am wondering why the tool could not do the same for Excel files. I mean, it could do the following as expected for yxdb
     OutputToolExample_RegionGrouped_Midwest.yxdb

But it could not do the same for xlsx
     OutputToolExample_RegionGrouped_.xlsx
For output to Excel, it created 4 worksheets with the suffix, example "Sheet1Midwest"

What have I configured incorrectly for Excel output? 

Thanks,
Chris

6 REPLIES 6
mbarone
16 - Nebula
16 - Nebula

Unfortunately it puts the dynamic name at the very end of the connection string, so it's doing it after the sheet name.  For Excel, you need to create the output path using a formula tool, and then "change entire file path" in the output tool's option at the bottom.  Let me know if you need further clarification.

atcodedog05
22 - Nova
22 - Nova

Hi @chrissgtan 

 

Excel has the concept of table which is sheets and works differently compared to over flat files. To add region in the filename as suggested you need to replace full path like below.

 

Input:

atcodedog05_1-1646832699602.png

 

 

Output:

atcodedog05_0-1646832675512.png

 

Hope this helps : )

chrissgtan
7 - Meteor

Thanks @mbarone , let me try and I will post here 😊

chrissgtan
7 - Meteor

Thanks for the tip @atcodedog05 , I will test and post here :-)

chrissgtan
7 - Meteor

Thanks, it works with a small modification
"OutputToolExample_RegionGrouped_"+[Region]+".xlsx|Sheet1" 
   is modified to

"OutputToolExample_RegionGrouped_"+[Region]+".xlsx|||Sheet1"

chrissgtan
7 - Meteor

Thanks ... works with small modifications to additional hints supplied by @atcodedog05 

Labels