Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

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!

jamielaird
14 - Magnetar

Well that wasn't much fun...! But I won't be forgetting about "auto configure by name" any time soon.

 

Spoiler
118_JL.png
JosephSerpis
17 - Castor
17 - Castor

Challenger Completed 

DavidP
17 - Castor
17 - Castor

So I finally bit the bullet wrote my first batch macro! One of those things I've always been putting off. As everyone says, writing a macro is actually pretty straight forward, EXCEPT, I couldn't for the life of me figure out why my macro only returns one line of data! After rewriting it countless times I finally consulted the community for help and found out that I have to add a BROWSE tool!!!!

 

As they say, the harder the lesson the better it sticks...

 

For my macro solution I configured the Input tool to return a list of sheet names, which I then used to build a new filepath and fed it to a dynamic input tool.

danilang
19 - Altair
19 - Altair

My solution

 

Getting the proper configuration for the macro was the key

 

Spoiler
MacroMain

 

 

Dan

kelly_gilbert
13 - Pulsar

 

Spoiler
1 - It took me a while to remember where to change the output setting for the batch macro (to allow different output schemas)!
2 - TIL that the Dynamic Input tool appears to import the first sheet, if a specific sheet is not provided. So, I could have simplified my macro by just using the dynamic input (without getting the list of sheet names, picking the first, then concatenating that to the file path).

Capture.PNG

 

PhilipMannering
16 - Nebula
16 - Nebula

My solution uses a batch macro simliar to most peoples..

 

Spoiler
WorkflowWorkflowBatch MacroBatch Macro
JoBen
11 - Bolide

Cheers!

 

Spoiler
I went the batch macro path. Here is what my macro looks like. 

Challenge_118.png
pasccout
8 - Asteroid

Here is my solution... lost a lot of time fighting with the action tool... 

 

PrivateStorm
8 - Asteroid

My solution to challenge #118 is attached.

jssandom
8 - Asteroid

My 100th challenge!!