In my canvas app I have two Dataverse tables Student and Test, one student can attempt many tests so the relationship is one-to-many.
In Test table I have the score column (Decimal number) which contains the score for the test that the student has attempted. Now in the Student table I want to create a calculated column which will contain the average score of the attempted tests by the student.
Example
Student A attempts 2 tests
Test 1 - Score 80
Test 2 - Score 90
Student A average score 85
Note: Average score must be saved in database.