2023: Week 21 - Solution
Solution by Tom Prowse and you can download the workflow here . We are revisiting The Prep School for the challenge this week and are looking at if the students grades are improving between years. Step 1 - Reshape Data First we want to get the grades in separate columns for each of the years so that we can compare them on a single row. We can reshape the table by using a Columns to Rows pivot where we can utilise the wildcard pivot to first bring in all the 2021 fields, then we can use the + button to add a second pivot with all the 2022 fields: We have renamed the fields so that it's easier to identify which grades are which. We can also remove the year from the Category field by using a custom split on the '-' and returning the 'last' section: After this the table should look like this: Step 2 - Average Grade We are now in a position to calculate the average grade for each student in both years. We can calculate this using an aggregation step where we gro...