Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Query
Unanswered

Less than or Equal(<=) is not working correctly on date column filter

(1) ShareShare
ReportReport
Posted on by

Hi Developers,

 

I have a requirement to fetch the most recent dated record based on a date. The parameter date, I am passing it from a dropdown and I am passing only the date so by default the time is 12:00 AM and the Date is 1st Sep 2023.

I have put the condition as Date<=dropdown2.selectedDate, so it should fetch me the items even if it has Date column value as 1st Sep 2023 12:00 AM, but it is not fetching those records.

 

For your reference I have added few screenshots to give more clarity on the issue, please share your thoughts why it is not able to evaluate the =(equal) operation in <= operation.

 

Please share your insights on this.

**I have added additional attachments in the first comment

 

  • Stefanos-TITAN Profile Picture
    2 on at
    Re: Less than or Equal(<=) is not working correctly on date column filter

    In case you need to filter the date column entries in a SharePoint List, you also need to consider about the exact entry time.

     

    Thus, if you need to take all the list items before a specific date, you must use the following function in your case:

     

    <= DateTimeValue(Text(Dropdown2.Selected.'Start Date') & " 23:59:59") 

  • Community Power Platform Member Profile Picture
    on at
    Re: Less than or Equal(<=) is not working correctly on date column filter

    Hi @AhmedSalih - could you please us here on how to resolve this? Is this an issue with Dataverse Date/Time columns?

  • Community Power Platform Member Profile Picture
    on at
    Re: Less than or Equal(<=) is not working correctly on date column filter

    HI @RezaDorrani ,

     

    Can you please check this thread and let me know what could be the resolution?

     

    Thank you

  • Community Power Platform Member Profile Picture
    on at
    Re: Less than or Equal(<=) is not working correctly on date column filter

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Query

#1
mmbr1606 Profile Picture

mmbr1606 7 Super User 2025 Season 1

#2
SD-13050734-0 Profile Picture

SD-13050734-0 4

#3
lbendlin Profile Picture

lbendlin 2 Super User 2025 Season 1

Overall leaderboard

Featured topics