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 a Gallery with ...
Power Apps
Answered

Filter a Gallery with Date from a SharePoint list

(0) ShareShare
ReportReport
Posted on by 289

Hello community,

 

I have a gallery that reads from a SharePoint list (ListA) and display records from that ListA. I have a dropdown filter with distinct date value from List A. 

 

I want to filter the gallery with the dropdown. I tried formulas like the one below, but it's not working.

 

Filter('List A', 'Work Date' in Dropdown_FilterDate.SelectedText.Value) 

 

I know it's because the dropdown is reading the dates as text but and in SharePoint, the colume for "Work Date" is set to be a date so the two format are not matching, hence not filtering. But I tried converting the Dropdown_FilterDate.SelectedText.Value  to a date such as Filter('List A', 'Work Date' in Date(Dropdown_FilterDate.SelectedText.Value)) but it still doesn't work

 

any help and advice is appreciated. Thank you

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    154,943 Most Valuable Professional on at

    Hi @lliu_western ,

    Try

    Filter(
     'List A', 
     Text('Work Date',ShortDate) = Text(Dropdown_FilterDate.SelectedText.Value,ShortDate)
    ) 

    or maybe

    Filter(
     'List A', 
     DateDiff(
     'Work Date',
     DateValue(Dropdown_FilterDate.SelectedText.Value),
     Days
     )=0
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • lliu_western Profile Picture
    289 on at

    @WarrenBelz  Thank you so much for your quick respond. Tried both, but not working, still keep trying. Thanks

  • lliu_western Profile Picture
    289 on at

    @WarrenBelz  Actually, never mind, it worked! I had another filter that was causing it not working. THANK YOU.

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard