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
Anonymous
Not applicable

Formatting a DATEDIFF (DAY & MINUTE) Column

Hi,

I am trying to create a Measure that will provide the format as below:

 

xD  xH  xM   --->  (D=days, H=hours, M=minutes)

 

I have two DATEDIFF columns, one providing calculation in DAYS and other in MINUTES.  Some of the DATEDIFF are going to calculate a NEGATIVE duration.  That is what I am trying to format in a understandable way.  Everything I have tried is not showing correct values.

I basically need the value to calculate the same way for NEGATIVE duration as it does for POSITIVE duration.  For some reason, the NEGATIVE duration is not right.

 

I have attached a sample data file.  Any help would be appreciated.

file is .xlsx, but I am doing this in .pbix

https://1drv.ms/x/s!AkTVm4RCBslhgd5Xnw3rnW2mIqlbbg?e=JNKWdt 

0 REPLIES 0

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.