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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors