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 / Delegation issue with ...
Power Apps
Answered

Delegation issue with DateTime column in Dataverse

(0) ShareShare
ReportReport
Posted on by 133

Hi all,


I’m facing a delegation issue in Power Apps when filtering a Dataverse table on a DateTime column (cr437_financialyear).

 

🔹 Scenario

 

  • Data source: Dataverse table 'New tables'

  • Column: 'Financial Year' (DateTime)

  • Example stored value:

    12/31/2025, 12:00:00 AM

  • Control: Date Picker (FinancialYearDateValue)


  •  
 
 

🔹 Problem

 

When I filter using direct equality:

 

'Financial Year' = FinancialYearDateValue.SelectedDate

 

👉 It does not return expected results, even when both values appear identical (12/31/2025).

 

However, when I use:

 

DateValue('Financial Year', "en-US") = FinancialYearDateValue.SelectedDate

 

👉 It works correctly, but triggers a delegation warning:

 
 

"The DateValue part of this formula might not work correctly on large data sets."

 
 

🔹 Full context (simplified)

 

 

ClearCollect(
    FinalData,
    Filter(
        'New tables',
        'Status (cr437_status)' <> "Draft" &&
        'Status (cr437_status)' <> "Rejected" &&
        DeleteMark = false &&
        'Client Code' = ThisItem.'Client Code' &&
        // Problem line:
        'Financial Year' = FinancialYearDateValue.SelectedDate
    )
)

 

 
 

🔹 Observations

 

  • The DateTime values look identical in UI

  • Suspecting timezone / hidden time component mismatch

  • Using DateValue() fixes comparison but breaks delegation


  •  
 
 

🔹 Questions

 

  1. Why does direct equality fail even when both values appear the same?

  2. Is this due to DateTime vs Date or timezone conversion (UTC vs local)?

  3. What is the best delegation-safe approach to compare a DateTime column with a DatePicker value?

  4. Would changing the Dataverse column to Date Only be the recommended fix?

  5. Is there any way to normalize the values without breaking delegation?


  6.  
 
 

🔹 What I’m trying to achieve

 

Filter rows by:

 

  • Client Code

  • Status

  • Matching Financial Year (based on DatePicker)


  •  
 

while remaining fully delegable.

 
 

Any advice would be appreciated. Thanks!

 

Categories:
I have the same question (0)
  • Suggested answer
    WarrenBelz Profile Picture
    155,838 Most Valuable Professional on at
    Your question  Would changing the Dataverse column to Date Only be the recommended fix? is exactly what is required. The moment the date is stored with a time, you need an exact match. Date only columns will achieve this. Using DateValue gets around this, but is not Delegable.
     
    You could also try
    'Financial Year' > FinancialYearDateValue.SelectedDate &&
    'Financial Year' < FinancialYearDateValue.SelectedDate + 1
     
     Please ✅ Does this answer your question 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 answering Yes to Was this reply helpful? or give it a Like ♥
    Visit my blog Practical Power Apps    LinkedIn  
     
     
     
     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard