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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

2 Same Dates Not Resulting to 0 (Date Difference)

Hi, Community. Good evening to all. I have a question regarding date difference. My dates are the same, though there are some differences in time. But I want to have a result of 0. What should be change in my DAX?

katerinepr_0-1653662065056.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

It is solved now. 🙂 I edited my DAX with this:

katerinepr_0-1653666190052.png

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

It is solved now. 🙂 I edited my DAX with this:

katerinepr_0-1653666190052.png

 

PabloDeheza
Solution Sage
Solution Sage

Hi @Anonymous !
It look like your calculation us Summing the column "Is Working Day" which probably has a 1 for each working day, if what you want is to calculate the difference between those dates then try using the DATEDIFF() function.
DATEDIFF(  'Fiscal Calendar'[Fiscal Day], 'PostRelease_Completed'[Post Release Tasks - Date of Entry], 'PostRelease_Completed'[Final Complete Date]

Let me know if that helps!

Anonymous
Not applicable

I have tried that, but it's having errors if I wan't to consider the working days. 😕

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.