Using a variable in the title of an output file
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello,
I'm trying to export Excel files with these options:
I have two different "BU" (named "NORD" and "SUD"), so I'm expecting to have two different files; one named "Validation NORD" and one named "Validation SUD". But it doesn't work; the title remains "Validation" in both cases, so the file with the first BU is erased by the one with the second BU.
How can I do to use the name of each BU in the titles of the files ?
Thanks for your help !
Solved! Go to Solution.
- Labels:
- Output
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi
you will need to select the option change entire file path.
There is a good guide here on how to set it up : https://community.alteryx.com/t5/Alteryx-Knowledge-Base/Output-to-separate-Excel-files/ta-p/1247
Shaan
Co - Founder : datacurious.ai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@ShaanM shows the way for excel files, but @Marie-Camille, your method works for .csv files. A new file gets created every time the value in the suffix field changes.
@ShaanM: Is there a specific reason for the difference in behaviour when writing to Excel as opposed to other file types?
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
that is correct @Marie-Camille method will work for csv files.
The main difference is that excel files have file name and table/sheet names, csv just have filename.
Alteryx can happily change the csv file name using the change file/table name option. But for Excel this option will only change the sheet name. That is the main reason why we are then required to change the entire file path to get around this.
Hope this clarifies
Co - Founder : datacurious.ai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
I tried both methods (for csv and Excel) and they worked, thanks a lot to both of you !
