Hello @crowwoods1
You did not describe the data structure.
I’ll try to describe a possible project from the point of view of the form’s developer. For example, assuming you have stored the users’ information in the database’s table “users_information” with the columns’ structure:
user, team, activity, points
You can use the set of DS fields (distributed with the Developer and Platinum versions of the plugin) to read the information from the database.
Continuing with the example, you can insert a RecordSet DS field with the query below to get the list of users, with their teams, and the total points per user:
SELECT user, team, SUM(points) as total_user FROM
users_informationGROUP BY user ORDER BY total_user DESC
Or to get the list of teams with the total of points per team sorted by point in descending order:
SELECT team, SUM(points) as total_team FROM
users_informationGROUP BY team ORDER BY total_team DESC
Or you can read the complete table into a RecordSet DS field and make the calculations from the equation in a calculated field.
Please, read the following blog post:
https://cff.dwbooster.com/blog/2019/02/14/ds/
Best regards.