Ranking and Data Storage

So I’m trying to make an app for my school where stydents can complete fun, mindful, and educational chllanges to earn points. Different challenges have different point values, and I approve student’s submissions after they submit, and they get points. I want the app to record the total points someone has (assigned to their email) and show it, and use the points to place the students in a ranking system.

I can’t figure out how to do the rollup to calculate each individual person’s total points.I’ve tried this method:
In my submissions table,

  1. Created a Template column that pull in the values from the user’s email column
  2. Created a relation column to link the emails in the template column to the emails that students enter in the submissions table.
  3. Tried to create a rollup column to roll up values from my relation column.

It seems like I can’t use a relation column as a source for my rollup. Is there a work around for this?

My submissions table:

My Users table:

Do you have the ‘Multiple’ check box selected in the relation?

Instead of a relation you could use a Query column and eliminate the need for template columns.

Also, I noticed you have emails that sometimes have uppercase letters and sometimes don’t. Be careful with that because relations and queries will be looking for exact matches. If letter case doesn’t match, the relation or query won’t return a match.

3 Likes

Yay thank you that worked!!! How exactly would I go about setting up a ranking system?

At a basic level, you could use case number 2 in the following post. Instead of pointing the lookup at the entire table, you would point it at your sorted query. This works at a basic level, but gets complicated if you start to have ties. All depends on how you would expect ties to be handled.

1 Like

If you need something like the below, where ties are handled, I can help.

1 Like

I’ve tried using rollup columns and templates and query columns multiple times to try to make a ranking system..
It seems like glide won’t let me use a template or query column as a source for a rollup column.
what other simpler way can I use to create a ranking system?
I’m trying to do everything through my “Users” tab (photo attatched below).

Can you show us how you’re setting these up, the column configurations to be exact.

Have you applied the case number 2 Jeff mentioned above?

1 Like

I couldn’t figure out how to use Case 2, I didn’t see a specific “Find Element Index” option.
here’s what I was trying to do in the Users table:

  1. Template column (Template- [Total Points]. “Total Points” is just replaced by the total points values column. )
  2. Relation Column (Total points is related to total points. Condition - “is less than”
  3. Rollup (Sum of the relation column)
  4. Math column (Formula - Rank +1 )

Where I kept coming to a dead end was step 3. I can’t have a relation column as the source for a rollup column.

This is my first time using the app, and I don’t have much experience with app creating either so I’m trying to stick to simple steps.

Yes you can. As long as it is a multiple relation.

1 Like


Attached are the photos of the relation and rollup column I was trying to add.
i was trying to follow this process:

  1. A template column that uses Total Points to pull the value from that column
  2. a Relation column that links each Total Points to Total Points
  3. a Rollup column (source is supposed to be the relation column from above)
  4. Math Column for rank (1 + Rollup Column)

I couldn’t figure it out.:sob: Could you walk me through the steps?

What’s the purpose of the template column? Using that will cover a number to text, which can’t be rolled up using sum.

Why are you trying to create a relation using points? I thought you were trying to create a relation using the student email. Isn’t that what you want, so you can summarize points for each student? Isn’t that what you already have to get the total points already?

Like I said above, if you ate using the template column, it’s not going to give you a number, so you can’t use it for a sum. You didn’t have to always use a template column to create a relation. And like I said earlier, you could have used a query column to create your initial relation and not need template columns at all.

Not sure I follow what the purpose of this is for.

I think we need to back up a bit. You already have total points for each student. Go back and look at Darren’s case #2 video. Create a query column in place of a relation that retrieves all rows for the students, but sorts the results by total points. The rest of Darren’s steps should be the same.

2 Likes

I figured it out thank you for all the help. :slight_smile:

2 Likes