How can I get percentage of completion of a user in DB?

Hello Everyone,

I’m trying to create a progress query for each user/course in the database to build a dashboard in Grafana. However, I’m not sure how to calculate the progress per user for the query, and I couldn’t find any documentation about this.

Can anyone help me?