How can I calculate my database data.

I want to put my data in a form and after the data (in figures) is calculated and visible to users.

1 Like

If I understand your question, maybe you can calculate the data prior to inserting it into the collection? That is, add more columns, each corresponding to a calculation you are trying to display, and then when inserting the data into the collection you can fill out the computed fields. One way to do this would be through hooks - use either beforeInsert() or afterGet() . Not sure if this answers your question however…

I’m still a beginner in code, so I don’t know much about it.