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 / Filter sharepoint list
Power Apps
Answered

Filter sharepoint list

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi Folks,

New to PowerApps and was wondering if anyone could help 🙂

I want to filter a SP List called "Visitor Registration" and  values in a Gallery display where "Date_Departure" is blank. Date Departure is a Date and Time Column.

 

Thanks!

Categories:
I have the same question (0)
  • Tom_Slosse Profile Picture
    1,430 on at

    Hey @Anonymous

     

     

    So if I understand your problem you only want to show the items where the Departure date is blank right?

     

    Kind regards

     

     

    Tom

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Tom_Slosse

    Yeah that's correct, I only want the gallery to show items that do not contain a Departure Date.

  • Tom_Slosse Profile Picture
    1,430 on at

    Hey @Anonymous

     

     

    I think you could do this in the Items property of your gallery:

     

    If(IsBlank(<Departure_Date>),SortByColumns(...))

     

    Hope this helps and let me know if it still doesnt work

     

    Kind regards

     

     

    Tom

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Tom_Slosse

     

    Doesnt seem to work....

    If looks like its wanting me to name "Visitor Registration" before Departure data as it cant seem to find it???

  • Tom_Slosse Profile Picture
    1,430 on at

    Hey @Anonymous

     

     

    Try this:

     

    If(IsBlank(<DataSource>.<Departure_Date>),SortByColumns(...))

     

    Hope this clear it, otherwise you will have to give me some screenshots of your application 🙂

     

    Kind regards

     

     

    Tom

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Tom_Slosse

     

    Progress!
    Managed to get up to:

     

    If(IsBlank('Visitor Registration'. Date_x0020_and_x0020_Time_x0020_0), SortByColumns('Visitor Registration'.Title))

    Says an invalided number of arguments?

  • Tom_Slosse Profile Picture
    1,430 on at

    Hey @Anonymous

     

     

    The SortByColumns exepcts more parameters thats why it gives an error.

     

    SortByColumns(<DataSource>, <Column>, <Order>)

     

    An e.g. SortByColumns('Visitor Registration',"Title", If(SortDescending1,Descending,Ascending))

     

    Kind regards

     

     

    Tom

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Tom_Slosse

     

    Thanks!
    Its accepting the formaula now, but shows no results....

     

    App 1.JPG

  • Tom_Slosse Profile Picture
    1,430 on at
    Hey @Anonymous


    You should remove the dot after your datasource in the SortByColumns and then use Title like this: "Title",

    Kind regards


    Tom
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Tom_Slosse

     

    Doesnt seem to like it....???

    App 1.JPG

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 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard