2024: Week 41 - Solution
Solution by Tom Prowse and you can download the workflow here . Step 1 - Input All Years The first step is to input all of the sheets for each years worth of data. We can do this using the 'union multiple tables' functionality within the input step where we want to include all sheets with the matching pattern '20*': We can then merge some of the columns together so that we have a complete table with no mismatched fields. The fields we need to merge are: Total & Total Earnings Salary/Winnings & Salary/winnings Country, Nationality, & Nation After merging the table should look like this: Step 2 - Create Years and Monetary Amounts Next we want to rename the Table Names field to Year and make sure it's a number field. Then we can turn to the monetary amounts by pivoting the Salary/Winnings, Total Earnings, and Endorsements fields using a Columns to Rows pivot: This allows us to then remove the following in these fields: Remove $ sign REPLACE([Pivot1 Va