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 / Using Sort and Filter ...
Power Apps
Answered

Using Sort and Filter to filter a gallery

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I am trying to filter a gallery in a certain order.

As you can see from my attached screenshot, the Gallery is currently filtering based on whether the MIR is complete or not, only showing MIR Complete? = No. This is what i want.

However, as you can see on the screenshot, there is another data called 'Hold Complete?'. At the moment the Gallery is order of date created automatically. However, I want the gallery the order the items so that any data that has Hold Complete? = No, is at the top of the gallery. 

So, within the gallery all the data will only be from 'MIR Complete? = Yes', but at the top of the gallery will be the data that also has 'Hold Complete? = No'.

 

This is so the user can prioritise which data to look at, as any data that has 'MIR Complete - Yes' but 'Hold Complete - No' is a priority and thus needs to be at the top of the list.

 

Any help is appreciated, thank you. 

 

Any help is much appreciated. 

Categories:
I have the same question (0)
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Anonymous 

    SortByColumns(Filter('Powerapps MIR List', 'MIR Complete?'="No"),"Hold Complete",["No","Yes"])
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Drrickryp ,

     

    Thanks for sending that suggestion, I have tried using it but have the error message of:

     

    Invalid argument type (Table). Expecting a Text value instead.

    The function 'SortbyColumn has some invalid arguements'

     

    I have attached screenshots of the error below

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I think I have got it working now, but I don't know how as the content of my formula seems very wierd, it is:

    SortByColumns(Filter('PowerApps MIR List', 'MIR Complete?'="No"),"HoldComplete_x003f_",["Yes", "No"]). Not sure why this is?

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 491

#2
WarrenBelz Profile Picture

WarrenBelz 407 Most Valuable Professional

#3
11manish Profile Picture

11manish 331

Last 30 days Overall leaderboard