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 / Filter Browse G...
Power Apps
Answered

Sort / Filter Browse Gallery based on if specific field is blank

(0) ShareShare
ReportReport
Posted on by 216

Hi everyone

I have a browse gallery .

In which there is a field called MX,

This is a number field.

I want to give a button where I can filter all records of browse gallery where MX field is blank.

I tried the following but has errors.

Sort( Filter('MyList', (IsBlank(MX)), Title, Descending)  ........ OR ThisItem.MX

I am put this formula in OnSelect property of Button

Apologies, I am new to Power Apps

Thanks

kind regards

Categories:
I have the same question (0)
  • K369 Profile Picture
    216 on at

    I got some success to sort Gallery by specific field as follows:

    This code is in ITEM property of gallery.

    SortByColumns('MyList',"MX",Descending)

    This is working, but I want it to display all records where MX is blank.

    Help please

    Regards

  • Verified answer
    rubin_boer Profile Picture
    4,843 Super User 2024 Season 1 on at

    hi @K369 you almost there SortByColumns(Filter('MyList',IsBlank("MX")) ,"MX",Descending) , you need just to filter the datasource to return the blank MX's.

     

    Hope it helps

     

     

     
  • Verified answer
    K369 Profile Picture
    216 on at

    Hello Rubin_boer

    perfect solution. Thanks . But now it creates another challenge. Now that I have browse screen sorted where MX is blank.

     But if I now want to edit record it pulls different records.

    actually I have browse screen 1 where I sort by location. I have just duplicated this screen as browse screen 1_1 where I have applied this solution . It works well but can’t edit correct records

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 94

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard