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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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