Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

% change with random dates

I have some workout data that includes a number of fitness tests and I want to be able to calculate progress in these tests. The tests don't take place at regular intervals and there could be any num...
  • Anonymous's avatar
    Anonymous
    5 years ago

    Thank you - I tried the above but still got the same issue. Managed to fix it in the end by making the filter for the previousFTP calculation the same as the others (adding the bit in red):

     

    VAR previousFTP =
    CALCULATE (
    SUM ( workouts[Avg. Watts] ),
    FILTER (
    ALL ( workouts ), SEARCH ( "FTP Test Ride", workouts[Title],, BLANK () ) > 0 &&
    workouts[Date] = previousDatewithFTP
    )
    )

     

    Thank you for the advice!