Challenge #118: Think Like a CSE - A not-so-wild-wildcard input!
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
JamesCharnley
13 - Pulsar
07-22-2022
06:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Seen a lot of issues like this come up on the community but I've never tried to do it before. Nice to learn something new, but will need to continue this learning I think. Still feels very foreign
FilipR
11 - Bolide
08-05-2022
09:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
acarter881
12 - Quasar
08-10-2022
05:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
This one was very frustrating, but my solution works and scales to accommodate any number of workbooks. All one has to do is determine which file should be the template file (i.e., the schema to base the other workbooks on).
FrederikE
13 - Pulsar
08-15-2022
01:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
grazitti_sapna
17 - Castor
09-11-2022
10:14 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
9 - Comet
09-20-2022
09:25 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Alteryx
10-07-2022
10:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
martinding
13 - Pulsar
10-21-2022
07:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
acarter881
12 - Quasar
11-05-2022
02:19 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Here's another one of my solutions. I believe this solution is correct, whereas my previous solution was a bit hacky.
Spoiler
I quickly identified two problems with the Excel workbooks:
1. Fields may differ across workbooks.
2. Sheet names may differ across workbooks.
I decided to create two batch macros.
1. Batch Macro #1 iterates over the FileName field from the directory tool (input to the directory tool is requesting that Alteryx reads in all files that follow the format File*.xlsx and returns the full path (i.e., both the file name and the properly formatted sheet name).
2. Batch Macro #2 iterates over the full paths, auto configures the fields by name, and allows the output fields to change based upon the input. The result is a union of all of the files.
Batch Macro #1



1. Fields may differ across workbooks.
2. Sheet names may differ across workbooks.
I decided to create two batch macros.
1. Batch Macro #1 iterates over the FileName field from the directory tool (input to the directory tool is requesting that Alteryx reads in all files that follow the format File*.xlsx and returns the full path (i.e., both the file name and the properly formatted sheet name).
2. Batch Macro #2 iterates over the full paths, auto configures the fields by name, and allows the output fields to change based upon the input. The result is a union of all of the files.
Batch Macro #1
Batch Macro #2
Workflow
Kinga
8 - Asteroid
11-15-2022
08:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator