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 / Sort gallery by its ow...
Power Apps
Unanswered

Sort gallery by its own column

(0) ShareShare
ReportReport
Posted on by 5

Hello Community,

I have the following gallery:

felipewltc_0-1666867953878.png


I am using the gallery to display people under a table, then the second value, is the number of items the person has under his/her name, refereeing a different table. 

I need to be able to use that table and sort it from lowest to highest, but since it is a text label inside of the gallery, I cannot use it, any suggestion of how to achieve this? 

You will save my life!! 

 

Categories:
  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    Instead of directly writing in the label. Try using AddColumn Function.

    For example:

    Gallery's item property;

    AddColumn(List1,"NumberOfItem",Code on your label)

     

    This will add a dynamic column at the run time. And you can perform sorting on it like you normally do.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 339 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 289

#3
Mohsin Ali Profile Picture

Mohsin Ali 228

Last 30 days Overall leaderboard