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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Sorting / Filtering Ga...
Power Apps
Suggested Answer

Sorting / Filtering Gallery like in Modern Table

(1) ShareShare
ReportReport
Posted on by 74
Dear Community ! :)
 
I must admit I fell in love with the view of the controls in modern table which, when expanded, give the possibility of sorting and filtering the column.
I have a big question and request how to achieve such an effect and create a component or button thanks to which I will be able to filter and sort the gallery and such a multi level experience will be shown to me? 
Can someone walk me through this process or send me a link with some description? Thanks in advance.
 
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,493 Super User 2025 Season 2 on at
    Hi
     
    So, there are a couple ways, well many, some easier than others. I haven't specifically looked for one, but there may be a pre-existing user shared PCF control that you can use. 
     
    If you specifically have to have a popup that appears over the exact single column, then you will either have to create a PCF Control or a Canvas App Custom Control, which can do it once built.
     
    I do not know what level of sorting you want but the easier options are to either Add a Chevron Icon to each Column or to place a Dropdown/Combobox, with all the different sorting you want to do. Then in your Items property you would check if a sort option has been selected and then sort that way.
     
    Now again, there are many ways, and you might say yeah but I want to be able to sort by all the different columns in different ways, then my answer is, you need more help then will probably be here.
     
     
    So lets say you have 6 field
    Field1 - Field6
     
    And you want to sort by one of them Asc/Desc
     
    Option 1. Use a dropdown set to allow no selected option(its a property) OR make it default to whatever is the default sort
    Option 2. Use a combobox set to a single selection
     
    Items of either
    ["SortOption1","SortOption2" and so on]
     
    In the Items property
     
    SortByColumns(
        YouSource,
         Add a switch statement here to add the sort depending on whats selected, 
         SortOrder.Ascending/Descending  
     
    )
     
    So it would look like this on the screen
    In the Chevron Icon (called Down), you would sort by asc, then when the person clicks that icon, in that icons ICON property change it to Icon.Up and the chevron will look up and then sort by Desc. 
     
    I do not recommend adding chevrons to everything but if you do it makes your sorting and expressions way larger but possible.
     
     
    So there are two easy ways to do it.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard