web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Making a ranking syste...
Power Apps
Answered

Making a ranking system based on a Gallery

(0) ShareShare
ReportReport
Posted on by 8

Hello, I'm trying to create a rank system based on a Gallery. I have an SP list with all the users. It has a Code column and a Score Colum. 

 

I'm trying to display the users using a Gallery in ascending order. I already did this in my application but now I'm missing a number beside them so the user can see their position. 

 

I would like to be able to display the number position depending on the user's score. (I accept changes on the SP if it is necessary.) 

 

The gallery is already sorted. Now i just need to add the number by it's side depending on the position. 

 

Thank You very much!

Screenshot 2022-11-17 153234.png
Screenshot 2022-11-17 153204.png
Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Juan2004 

    For yoursortedtable  make the Items property of the gallery and add a label with text ThisItem.RowNumber:

    Ungroup(
     ForAll(
     Sequence(CountRows(yoursortedtable)),
     {
     myRecord: Table(
     Last(
     FirstN(
     Yoursortedtable,
     Value
     )
     )
     ),
     RowNumber: Value
     }
     ),
     "myRecord"
    )

     

  • Juan2004 Profile Picture
    8 on at

    Thank you very much for your response. The solution that you gave me worked perfectly! But could you tell me how to arrange the gallery based on the score? 

    Now I have the Gallery with the numbers but it is not organized in descending order. 

    Thank you.
    -Juan

  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Juan2004 

    Sure, 

     

    Ungroup(
     ForAll(
     Sequence(CountRows(splist)),
     {
     myRecord: Table(
     Last(
     FirstN(
     Sort(splist, Score, Descending),
     Value
     )
     )
     ),
     RowNumber: Value
     }
     ),
     "myRecord"
    )

     

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard