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 #179: Calculating Order Status

Bolide

I did not complete this in my under 10 minute goal.  I found myself getting tripped up on looking at the wrong field for updating the "Order Complete" column.  Attached is my solution.

 

Spoiler
Workflow 179.GIF

 

Highlighted
Asteroid

I'm not sure my solution would catch multiple shipments but it works for the data provided.

Meteor
Spoiler
Hopefully most systems have an order/invoice table to reference instead of just an open/shipped table.  

1.)Replace "|" with ',' split to columns, dynamic rename based upon first row.  

2.) Join and full-outer union.  

3.)Summarize to Order/Line level, determine line level shipment and flag for complete or not complete.  

4.) Summarize on Order, count number of open lines and set flag for Completed/Not completed orders.

5.) Join back to Line level

6.) Join back to shipment level 

7.) Filter on Shipment number != to Null

8.) Sort on Order Id and Line Id

Screen Shot 2019-09-03 at 4.33.33 PM.png
Alteryx Certified Partner

As others have noted, Order 8 Line 12 is a bit dodgy due to the nature of having a quantity of 1 being in Open Orders and a quantity of 1 having been shipped... Regardless, my answer matches the output and is attached.

 

Spoiler
Snag_9c8af38.png
Alteryx Partner

 

My Solution

Spoiler
challenge 179 solution.png
Alteryx Certified Partner

There's a flaw in one of the orders in the expected outcome - at least, I think so.

 

Spoiler
179.jpg
Asteroid

Not my cleanest solution but it works...  I get to the same results... 

 

Not sure about the quantity on order line 8 line 12 though... 

Meteor

Not the best solution but still got the output.

Alteryx
Alteryx
Spoiler
Capture.PNG

 

I would agree with a few of the other replies that there might be an error in the input file for one of the line items.