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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register 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.

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.