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 Gallery By Date...
Power Apps
Answered

Filter Gallery By Date AND Time

(0) ShareShare
ReportReport
Posted on by 8

Hi,

 

I am unable to filter the booking list with Date and Time.

Pls find below the formula I used.

In the gallery- Item property i used this formula.

 

Filter(
Bookings,
Location.Value = DataCardValue19.Selected.Value And 'Program Status'.Value = "Booked" And DataCardValue2.SelectedDate >= 'Start Date' And DataCardValue6.SelectedDate <= 'End Date' And TimeValue( DataCardValue7.Selected.Value) >= TimeValue('Start Time') And TimeValue(DataCardValue10.Selected.Value) <= TimeValue('End Time'))

 

Pls Guide.

Categories:
  • BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    Hi @SathishSS ,

     

    Can you please specify what is not working exactly? From a first glance your code looks correct, but it will help troubleshooting to compare your desired outcome against the current outcome.

  • SathishSS Profile Picture
    8 on at

    When I book a date that is greater than the previous date, The bookings should be visible as booked

    Eg.

    If I book the SD as 23-6-2022 and the ED as 24-6-2022 and the time 10.00 to 6.30

    the Room name should not be visible if I select a slot between  SD as 22-6-2022 and the ED as 24-6-2022 and the 10.00 to 6.30

    Pls do the needful.

     

  • Verified answer
    BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    Hi @SathishSS , 

     

    I'm guessing the issue is that you have separated the date and time. You will have to rewrite your filter statement with DateTimeValue, for instance:

    Filter(
    	Bookings,
    	Location.Value = DataCardValue19.Selected.Value And
    	'Program Status'.Value = "Booked" And
    	DateTimeValue({$DataCardValue2.SelectedDate} {DataCardValue7.Selected.Value}) >= DateTimeValue(${'Start Date'} {'Start Time'}) And
    	DateTimeValue(${DataCardValue6.SelectedDate} {DataCardValue10.Selected.Value}) <= DateTimeValue(${'End Date'} {'End Time'})
    )

     

  • SathishSS Profile Picture
    8 on at

    Thank you. It's working Good.

  • BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    Hi @SathishSS ,

     

    In case my answer solved your issues, can you please hit the "Accept as Solution" button on it for the benefit of the community?

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard