Weekly Challenges

Solve the challenge, share your solution and summit the ranks of our Community!

Also available in | Français | Português | Español | 日本語
IDEAS WANTED

Want to get involved? We're always looking for ideas and content for Weekly Challenges.

SUBMIT YOUR IDEA

Challenge #118: Think Like a CSE - A not-so-wild-wildcard input!

JamesCharnley
13 - Pulsar
Spoiler
JamesCharnley_0-1658496220118.pngJamesCharnley_1-1658496273795.png

 

 

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

Solved.

 

Spoiler
FilipR_0-1659718416507.pngFilipR_1-1659718424389.png

 

acarter881
12 - Quasar

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).

Spoiler
my_weekly_challenge_118_solution.pngdemonstration.png

 

FrederikE
13 - Pulsar
Spoiler
FrederikE_0-1660595774813.pngFrederikE_1-1660595776343.png

 

grazitti_sapna
17 - Castor

Macro always do the miracles. :)

Sapna Gupta
Reesetrain2
9 - Comet

All,

 

My submission,

Spoiler
Capture.PNG

JoshuaB
Alteryx Product Evangelist
Alteryx Product Evangelist

Updating from my old account

Joshua Burkhow | Chief Evangelist @ Alteryx | Follow me on LinkedIn and Twitter
martinding
13 - Pulsar

118-1.png

Spoiler
118.png

  

acarter881
12 - Quasar

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
acarter881_0-1667683131964.png

Batch Macro #2

acarter881_1-1667683157951.png

Workflow

acarter881_2-1667683169878.png

 

 

 

Kinga
8 - Asteroid

hi,

 

Please find my solution.

 

Spoiler
Kinga_0-1668529608369.png