Jump to content
  • 0

How to calculate the average of a field in a data table and write it in the current record ?


Johan

Question

I have a data table with student grades (0-10) for math, for science, etc.

When entering a new record for a student, I would like to compare the new score with the average of the entire student database, let's say for math, and then for science, ...

Next I want to write the average score of each field into the current record for comparison.

I thought that Triggered Actions would do, but don't know how to go forward with this.

Any help ?

Thanks!

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

We can indeed do this via Triggered Action.

If I got it correct, you want to get the average value from specific field, starting from the total value of all the records on the table as well as the value of the newly inserted. Then save the computed average to another field on the newly inserted.

If that is the case, you can normally use a trigger like this: 4473331




 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...