Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Error_With_DATEDIF_ Excel_Vs_Power Bi

Dear Team,

 

We could see the result of DATEDIF is showing the different result compare to Excel Vs Power Bi.

 

To test you can start date ( Date -1 ) range from 6-Jan-96 to 18-Jun-96 and end date for all the rage is Today (Date - 2).

 

raghuveerhegde_0-1704968579495.png

 

 

3 REPLIES 3
Anonymous
Not applicable

Thank you for work around solution , but it again impact during leaf year and all. 

Microsoft suppose to be fix this issues of DAX formula, as they created this DAX formula for the same purpose. but its not giving the expacted result.

 

raghuveerhegde_0-1704987313233.png

 

 

PaulMac
Helper IV
Helper IV

Hi @Anonymous 
Try this:

Years Passed = 
QUOTIENT( TODAY() - 'Sheet1'[Start Date], 365.25)

PaulMac_0-1704978337408.png

Hope that works for you 

Paul

Anonymous
Not applicable

Thank you for work around solution , but it again impact during leaf year and all. 

Microsoft suppose to be fix this issues of DAX formula, as they created this DAX formula for the same purpose. but its not giving the expacted result.

 

raghuveerhegde_0-1704987471334.png

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.