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
pshah090
New Member

Calculate duration between a list of times in Report View Table

Hi, 

 

I have the following list of times. How can I calculate the duration this set of times adds up to? There is a time gap from 12 pm - 2 pm which prevents me from doing a simple MAX time - Min time. 

 

Thank you!

 

pshah090_0-1685481881436.png

 

 

1 REPLY 1
amitchandak
Super User
Super User

@pshah090 , Not very clear.

But you can calculate Gap between two values

A new column

=

datediff([Start Date],minx(Filter(Table, [Start Date] > earlier([Start Date]) ), [Start Date]), second) 

 

 

For measure consider offset


Continue to explore Power BI Offset Compare Categories, Time Intelligence MOM, QOQ, and YOY: https://youtu.be/5YMlkDNGr0U

 

Power BI DAX- Earlier, I should have known Earlier: https://youtu.be/CVW6YwvHHi8
https://www.youtube.com/watch?v=cN8AO3_vmlY&t=17820s

 

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.