2024: Week 34 - Solution
Solution by Tom Prowse and you can download the workflow here.
Step 1 - Last Friday
After we have replaced the data set from last week's workflow, first we need to add a calculation to the Last Friday step before the join. This will help us to identify dates to roll back:
Last Friday
IF [Ends]<[Last Friday]
THEN date(dateadd('day',-3,[Ends]))
ELSE [Last Friday]
END
Step 2 - Holiday Overrule
We also need to add an additional clean step after the join where we can calculate whether to overrule the holiday or not. For this we need to find the minimum term? for each cake day using a fixed LOD:
Holiday Overrule
We can then use this in a filter to return only the values that are equal to the Term? - [Holiday overrule]=[Term?]
This allows us to remove any duplicate fields from the table.
This allows us to remove any duplicate fields from the table.
These are the only changes that we need to make to our original workflow so we are ready to output the data that should look like this:
You can view the output here.
After you finish the challenge make sure to fill in the participation tracker, then share your solution on Twitter or LinkedIn using #PreppinData and tagging @Datajedininja, @JennyMartinDS14 & @TomProwse1
You can also post your solution on the Tableau Forum where we have a Preppin' Data community page. Post your solutions and ask questions if you need any help!