Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Dynamic Excel Output File Name Not Working

Link86
8 - Asteroid

Hello, I am trying to dynamically output several files to excel.


Formula to create file name:

"AC_"+[DOC NUM]+".xlsx|||Sheet1"

 

Attached is the ending of the workflow setup as well as how the output tool is set up. The error I am getting is I need to specify a Sheet name. I am...

 

Thank you for your help.

 
 

 

 

2 REPLIES 2
Link86
8 - Asteroid
 

OK, not sure what is going on but the layout is producing this image. its basically duplicating the data and giving a null file name and then a file name. one of which has a table and one without a able. Capture4 has the settings for layout. I think this is the problem. How do I fix?

DataNath
17 - Castor
17 - Castor

Hey @Link86 - hoping this little explainer matches your scenario and can help. First of all, if you're grouping reports based on a certain field - [DOC NUM] in your case - then I'd imagine you're grouping the table like so:

 

Starting table:

 

20.png

 

Grouped within Table tool:

 

21.png

 

Because this field is being used for grouping, it remains outside of the Table itself as well, so we can reference it in a Formula expression to make your FileName field:

 

22.png

 

If it's still necessary (not sure on the full extent of your workflow), we can then just group on the newly-created [FileName] field in the Layout tool like so, which again keeps the layouts split out into the files they'll go into, like so:

 

23.png

 

Now, when using Reporting snippets, we Render the outputs, rather than using a standard Output Data tool. Here we can 'Choose a Specific Output File', navigate to the desired location and give it any name then hit Group Data Into Separate Reports, electing to group on filename and have this replace the filename (dummyfilename in our case). The result? 2 Excel files with the desired names like so:

 

25.png

24.png

 

Hope this helps! Demo workflow has been attached for you to look over and see what's happening.

Labels
Top Solution Authors