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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.