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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
HDavila
Regular Visitor

Datediff doesn't show half days

I'm currently working on I project where I need to calculate the difference between two days to get that result and divided by the profit/loss to get the profit by day but when I use Datediff the result is not giving me the right result.

 

For Example:

22/3/2020 00:0122/3/2020 19:24
3/3/2020 00:018/3/2020 13:12

 

In the example above the first line should be 0.807638888894871 but PBI is showing 0 and the second line should be 5.54930555559986 and PBI is showing 5.  I tried to see if the number was hidden but when I unhide the decimals they are 0.  I need the exact number to get an accurate result.  Can anyone help me with this issue?  

1 ACCEPTED SOLUTION
Anonymous
Not applicable

To get the exact number... just subtract one date from the other.

Best
D

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

To get the exact number... just subtract one date from the other.

Best
D

What do you mean with this as I have the same question?

Thank you that worked

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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