Hey all!
The goal:
I’m looking for a way to search for the longest streak of days when the user had a workout
The data:
Each user can open a new Workout on any given day
The task:
- I want to group all workouts by days (including days with no workouts)
- Then calculate all workouts streaks (for example a 3 days streak, a 7 days streak etc…)
- Then find the longest streak
I know how to do the first step. Not sure about the next ones
Ideas?
Thanks!