community
cancel
Showing results for 
Search instead for 
Did you mean: 
Do you have the skills to make it to the top? Subscribe to our weekly challenges. Try your best to solve the problem, share your solution, and see how others tackled the same problem. We share our answer too.
Weekly Challenge
Do you have the skills to make it to the top? Subscribe to our weekly challenges. Try your best to solve the problem, share your solution, and see how others tackled the same problem. We share our answer too.
Unable to display your progress at this time. Please try again a little later, or contact an administrator if you continue to see this error.
Getting started with Designer? | Start your journey with our new Learning Path!

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

Alteryx Certified Partner
Alteryx Certified Partner

My solution - using a batch macro

Alteryx Certified Partner

My solution :)

Spoiler
challenge_118.PNG

 

Asteroid

Cool challenge, it took some time and some google searches :)

Asteroid

Solution attached

Alteryx
Alteryx

If I think of this as a CSE, I would see this as a troubleshooting problem. I probably wouldn't want to give them a macro that purports to pull in any kind of Excel file and reconcile mismatching schemas because then I would wind up having to support the macro (and answer questions like why column 23 is a string instead of a double). So my solution is a workflow that fixes the specific issues with the files. The CREW macro might also be an option as long as the CSE explains what the problem is and points out that the CREW macro does change all the data types to strings.

With that said, I'm still having trouble getting my head around batch macros and reviewing these solutions was very helpful.

Pulsar
Pulsar
Spoiler
Have done this many times

Capture.PNG

I like the way @patrick_digan puts the control parameter constant right in the input file path!
Alteryx
Alteryx

Went down the macro route as I already had a similar example which will unpack any number of excels with any number of sheets of different schema. 

 

Worked well:

 

Week 118.PNG

Alteryx Certified Partner

Really?

Spoiler
118.png
Meteor

The use of macros make every work really easy. I edited my macro to get different excels with different tabs and schema.

 

Hope it helps

Comet
Spoiler
The issue is with wildcard inputs when the schema of the Excel file varies compared to the first file read in. I always solve this using a batch macro.


Challenge118.PNG