Hey guys, to simplify it, in my app I am collecting a “Score” for each user every week.
Users are grouped into different teams in the database.
Right now, I am trying to create a dashboard for the teams, which would show the average “Score” per team and how it progresses over time.
I tried this, and it works to give me an average of the score, but it is giving me the average of every record. What I want to achieve is that it gives me the average of the :lastitem’s score, for each member.
So in the example “admir” has multiple records, and “samar” has only 1 so far. In the team dashboard I want to show the average of the last record by “admir” and last record by “samar”.
Anyone has any idea how I could achieve that? Let me know if it is unclear and any help would be really appreciated!
I think I can maybe set it up like this, but one thing might become an issue.
Doing it this way, wouldn’t it make it impossible to track the average over time? So showing in a graph how the team’s Score has changed from week to week.