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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Bando
Frequent Visitor

Measuring the number of minutes between two dates to calculate uptime per month?

If I have a service or a server that has been online since 1st Jan 2017 00:00:00 and went down  2nd Feb 2017 02:00:00 it's easy to calculate the number of minutes in between the two dates using dax. But how do I calculate the number of minutes that the service was up in January and the number of minutes it was up in February?

 

I'm trying to calculate a service availability calculation in Power BI with a table of data for multiple services linked to a calendar table.  It as if I need to create some sort of calculated column in the calendar table that will accumlate the minutes per day each service was up for. Can anyone shed any light on this if I'm making sense that is?

 

pbi query.png

1 ACCEPTED SOLUTION
Eric_Zhang
Microsoft Employee
Microsoft Employee

@Bando

You can reference the solution in this Time calculations - Hours per month over different periods , it is very similar to your case.

View solution in original post

1 REPLY 1
Eric_Zhang
Microsoft Employee
Microsoft Employee

@Bando

You can reference the solution in this Time calculations - Hours per month over different periods , it is very similar to your case.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.