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

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
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.

Top Solution Authors