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 #221: Avocado Consumption

estherb47
15 - Aurora
15 - Aurora

Yummy challenge!!

 

Spoiler
Spoiler
EstherB47_0-1592852481215.png

Used many more grouping fields in the Multi-row formula tool than I had done before, and eliminated the need for several other tools in doing so (extra sorts, crosstabbing, formula tool). Not entirely dynamic because I had to move the fields around with a select at the end to match output.

bsanders2009
8 - Asteroid

Just like my first car--it's ugly but it works!

 

Spoiler
bsanders2009_0-1592853514929.png

 

ggruccio
ACE Emeritus
ACE Emeritus

I probably made it more difficult than it needed to be!  But got it to tie out exactly.

 

Spoiler
ggruccio_1-1592854011289.png

 

 

pasccout
8 - Asteroid

Here is my solution

AryCardoso
8 - Asteroid

.

chinta
7 - Meteor
Spoiler
Solution to the challenge: 

This could have been straightforward had there been no constraint on the output model. Still I was able to modify, but wish there's isn't any model constraint. 

 

So, here's what I did, 

1. Calculated the min and max periods (Year + Month).

2. Selected min and max periods only.
3. Using Crosstab, I was able to break the model by PLU codes.
4. Calculated max %consumption. 
5. Merged each crosstab outputs using Join Multiple tool.

I don't feel this workflow is efficient, but nevertheless it works. 
Final workflowFinal workflow

 

 

Tberney
8 - Asteroid

The real challenge here seems to be in making the WF dynamic - meaning to be able to adapt to changes in the number of regions, types, or SKUs. As it happens, types are handled naturally by the approach I took. See inside for how I approached the others

Spoiler
Regions required that I turn the sampling function into a macro and feed in the region count. The transpose tool turns the field names into data so calculating the values for additional SKUs was straightforward, and using the dynamic rename tool I can drive the names. The Transformations strip the % signs so you have to put them back in at the end. All this pushes the totals to the end (because 'T' sorts after the 4-digit SKUs) and i did not bother to figure out how to push them back to the front.
Tberney_2-1592857640616.png

 


 

DaisukeTsuchiya
13 - Pulsar

Here is my solution.

 

Spoiler
キャプチャ.JPG
alexandramannerings
8 - Asteroid
Spoiler
alexandramannerings_0-1592861204779.png

 

When life gives you avocados, make guacamole.

EW
11 - Bolide

My solution: 

 

Spoiler
221_EW.PNG