I've got a Sharepoint list whose columns are Email, Display Name, and Points for each daily quiz people take. I'm trying to create a ranked leaderboard in a Gallery that shows a Ranking (1, 2, 3...), the display name, and total points.
So far, I can use the below code to add up each person's points and sort the resulting table, which I can display in the Gallery. I just want to add a Ranking column to show what place each person is in. I think I need to use CountRows and Sequence somehow, but I'm not sure exactly what I need.
SortByColumns(
AddColumns(
GroupBy('2024PrismaticaQuestionHistory', ParticipantEmail, ParticipantName, GroupedScores),
'Total Points',
Sum(GroupedScores, Points)
),
"Total Points",
SortOrder.Descending
)
I'm still pretty new to PowerApps but what I'd like to do is assign the table returned by AddColumns to a variable and then operate on that, but I'm not sure how. Thanks for any help.