Hey :slightly_smiling_face:
I have 2 tables, 1 is ‘Sessions’ and the other one is ‘Athletes’.
Each session that an athlete does, is entered to the Sessions table, with a link to the Athlete’s specific record in the Athletes table.
I would like to make some aggregations for each athlete, based on sessions he had during the week previous to this session, 2 weeks, 3 weeks and a month (not to TODAY() but to the ‘Day’ field of the session)
What I did is that I created a lookup in Sessions table, to look up the “Sessions” field in the Athletes table, which, for each athlete, provides all the sessions that this athlete did.
What I want to do is to filter these records based on the day/week of the session, so that I could “leave” only the ones that were on the week previous to this specific session, and then use rollup on these record to create a SUM on some metric from the Sessions table.
Is this possible in some way?
