2022: Week 39 - Solution
Solution by Tom Prowse and you can download the workflow here.
This week we revisit a favourite challenge of ours... a fill down! We are looking to help the HR department fill in the missing information around key employee dates.
Step 1 - Employee Field
This allows us to join all of the rows where the record id is less than the employee id. This creates an expanded table, but we can then use some filters to ensure that the names are correctly labelled.
To ensure we are filtering correctly, first we want to find the Max number for each Employee ID using an FIXED LOD:
Employee ID Match:
We can then use this field to filter to keep the rows where [Employee ID Match]=[Employee ID], then we can remove the Employee ID Match, Employee ID, & Employee fields so the table looks like this:
Step 2 - Work Level Field
We can then do a join back onto the previous step. This time it's an inner join where Record ID >= Work Level ID
Again, as a result of the join, we need to filter some of the results. First, we need to find the maximum ID for each Work Level:
Work Level ID Match
Then we can filter to keep only values where [Work Level ID Match]=[Work Level ID], then remove any additional fields so that the table looks like this:
Step 3 - Reorder Data
Record ID
After ordering in the correct way we can output our data that should look like this:
After you finish the challenge make sure to fill in the participation tracker, then share your solution on Twitter 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!