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
Werick_V
Regular Visitor

Calculating service downtime based in incident total time excluding non operational hours

Hi

 

I am trying to find a way to calculate the total time a incident is affecting the availability of a service, but i aly want to cound the times the service is open during oerational hours.

 

there are different sites each with it own operational hours for weekdays, saturddyas and sundays.

 

Werick_V_0-1639307252597.png

 

Manually the results should look like this

 

Werick_V_1-1639307354801.png

 

 

I would apprciate some assitance.

 

Regards

 

 

2 REPLIES 2
v-eqin-msft
Community Support
Community Support

Hi @Werick_V ,

 

please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data to help us clarify your scenario.

 

Best Regards,
Eyelyn Qin

Thingsclump
Resolver V
Resolver V

Hi @Werick_V 

 

At a high level, you can create table with list of all sites (Table A). Create one more table as a calender table which will have list of dates, day name, weekday or not etc. (Table B). Next is create a table with operational hours only. (Table C). Last table would be incidents table with downtime (Table D). Create relationship between Table A, C and D using site name. Table B, C, D should be related by date column. So create a relationship for it. 

 

The required view of operational hours-downtime can be calculated by a measure which you can use in any chart or visual.

 

Thanks

Thingsclump

 www.thingsclump.com 

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