2021 Week 38 - Solution
Solution by Tom Prowse and you can download the workflow here.
The challenge this week took a look at what the best movie trilogies of all time were. This is off the back of Jenny's viz on Tableau Public so lets see how we can prepare the data to be visualised.
Step 1 - Average, Highest & Rank Trilogies
Step 2 - Trilogy Table
The table should now just be the trilogy name and ranking:
We can now join this to our original data set by using Trilogy Rank = Trilogy Ranking:
Step 3 - Final Cleaning
There are some final clean ups that we need to do to prepare our data for the output. First we want to round the Average field to 1 decimal place:
Trilogy Average
ROUND([Trilogy Average],1)
Then we can split the Number in Series field so that we have both the film order and total films in series. To do this we can again use an automatic split to split the number either side of the '/' into two separate columns.
The Split 1 field can be renamed to 'Film Order' and the Split 2 is our 'Total Films in Series' field. Finally we can remove the Number in Series field and then we are ready to output our data, which should look like this: