2021: Week 44 - Solution
Solution by Tom Prowse and you can download the workflow here . Step 1 - Create KMs, Turbo Trainer & Outdoors Fields The task this week is to input the data and then convert the value field to kilometres. From the requirements we know that Carl cycles at an average of 30km/h so we can use the following calculation to convert the values, that are in mins, to km's: KMs ZN(IF [Measure] = 'min' THEN ([Value]/60)*30 ELSE [Value] END) On a new step we can then convert the measure field by changing mins to 'Turbo Trainer' and kms to 'Outdoors'. We can do this by double clicking on the value in the profile pane and then renaming for each value. Finally we want to use a rows to columns pivot so that we create a new field for Turbo Trainer and Outdoors: After the pivot our data should now look like this: Step 2 - Create New Rows Now we want to ensure that we have a row for each date between the 1st Jan and 1st Nov 2021, therefore we need to create s...