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 / Date comparison in Fil...
Power Apps
Answered

Date comparison in Filter of List Rows

(0) ShareShare
ReportReport
Posted on by 74

I have a date in my table 'bdh_dateworked' that has a value of 03/07/2023

 

bdherh1_3-1678469863927.png

 

My filter is as follows (output from test)

 

bdherh1_2-1678469811930.png

 

But the filter is not grabbing the record.   

 

I'm sure this is a dumb request but this is all fairly new to me (Dataverse and PowerAutomate)

 

 

I have the same question (0)
  • Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    Have you tried something like this?

    bdh_dateworked ge 2023-03-07T00:00:00-00:00 and bdh_dateworked lt 2023-03-08T00:00:00-00:00

  • bdherh1 Profile Picture
    74 on at

    Thanks Drew

     

    One of the dates is coming from a List Rows above and both are defined in the database as Date Only.  

     

    bdherh1_0-1678473073984.png

     

  • Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    ahh, got it.  A couple more things to check / try:

     

    1. Did you try with single ticks around the Date Worked dynamic field?
    2. If this doesn't work, try to do a ge to verify it returns results for everything above this date
    3. Also you might want to check on the field in Dataverse to see if it is User Local for Behavior of the field (https://learn.microsoft.com/en-us/power-apps/developer/data-platform/behavior-format-date-time-attribute

     

  • bdherh1 Profile Picture
    74 on at

    So I tried the single ticks and that did not work.

     

    I changed the eq to ge and that DID work, but its not what I need.  Because there will be rows that are greater that I dont need

     

    I looked and it is set to Date Only instead of User Local

     

     

  • Verified answer
    Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    Couple things:

    1. I would retrieve the field and verify what is reflected, even though it is Date Only, since you have User Local this might cause issues.
    2. Try the following in your syntax for the filter rows
      1. bdh_dateworked ge DateWorked and bdh_dateworked lt addDays(DateWorked,1)
  • bdherh1 Profile Picture
    74 on at

    thank you

     

    I tried this, and actually thought about it, but it is giving me this error on the addDate function

     

    and bdh_dateworked lt addDays(triggerOutputs()?['body/bdh_dateworked'],1)

     

    The DateTimeOffset text '2023-03-08T00:00:00.0000000' should be in format 'yyyy-mm-ddThh:mm:ss('.'s+)?(zzzzzz)?' and each field value is within valid range.

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 765 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 272

Last 30 days Overall leaderboard