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 / Filter Gallery by sele...
Power Apps
Answered

Filter Gallery by selected date and show data from a sharepoint list only on that date

(0) ShareShare
ReportReport
Posted on by 42

I am trying to filter a gallery that is linked to a SharePoint list called 'RFQ'. I have a Date field in it that automatically gets set to the current date time when created. I am trying to display any data that is on that date in the gallery.

 

Here is an example of the format of the "Date" field in my SharePoint list:

3/19/2024 8:33 AM

 

I have a Date picker which they use to select the date. I am converting the dates to be the same format as you will see below, I confirmed they get set to the correct format via testing with a label.

 

Here are 3 example I have tried that do not work:

 

1.

 

 

Filter(
RFQ,
Text(Date, "mm/dd/yyyy") = Text(DatePicker1.SelectedDate, "mm/dd/yyyy")
)

 

 

 

2.

 

 

Filter(
RFQ,
Text(DateValue(Date), "[$-en-US]mm/dd/yyyy") = Text(DatePicker1.SelectedDate, "[$-en-US]mm/dd/yyyy")
)

 

 

 

3.

 

 

Filter(
 RFQ,
 ThisRecord.Date >= DatePicker1.SelectedDate,
 ThisRecord.Date < DatePicker1.SelectedDate
)

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at

    hey @jbucks 

     

    can you try this please:

    Filter(
     RFQ,
     DateValue(Text(Date, "[$-en-US]mm/dd/yyyy")) = DatePicker1.SelectedDate
    )
    

     

    Alternatively, if you need to compare the date portions more explicitly and handle the datetime nature of your SharePoint Date field, you can adjust the filter logic to include all records from the start of the selected day to just before the start of the next day:

    Filter(
     RFQ,
     Date >= DatePicker1.SelectedDate,
     Date < DateAdd(DatePicker1.SelectedDate, 1, Days)
    )
    

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • jbucks Profile Picture
    42 on at

    Thank you @mmbr1606 the second example worked great!

  • mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at

    @jbucks great that it helped 😉

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 739 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 268

Last 30 days Overall leaderboard