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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
raghuveerhegde
New Member

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
raghuveerhegde
New Member

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 @raghuveerhegde 
Try this:

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

PaulMac_0-1704978337408.png

Hope that works for you 

Paul

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.