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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
kasfour
Helper I
Helper I

Calculating Uptime

Hello,

 

        I am trying to have a dashboard that calculates each service's uptime. The issue is I cannot seem to find a way to divide the downtime against the operational time without having duplications if the date is repeated in the original sheet (ex: August 25).

To explain more, when checking August uptime the operational time is then found as 32 days instead of 31.

Appreciate your help if there is another way to do so . Thanks a lot.

 

kasfour_0-1665599580906.png

 

 

6 REPLIES 6
kasfour
Helper I
Helper I

Can I calculate the difference between dates chosen in the Date slicer. If this is possible, I guess I will be able to get the uptime result in the end

Stachu
Community Champion
Community Champion

I do not see 31/32 days in the screenshot you attached, what are you refereing too? Also what is considered the operational time in this scenario? As for the duplicates - there are 2 dates for 25 Aug, but they are for different services, so as you mentioned that you want to calculate each service uptime I do not see how is that a problem, can you elaborate a bit more?

Also it would be great if you provided the example of input with both downtime & operational time and expected output (can be calculated manually)



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

v-jingzhang
Community Support
Community Support

Hi @kasfour 

 

Sorry I don't see operational time in your data. Can you explain what is / where is the operational time? And what is the logic to calculate the uptime based on downtime and operational time? I cannot understand the current data and expected result. Can you provide some expected output and calculation logic to help me understand this question better. 

 

Best Regards,
Community Support Team _ Jing

This is the main dataset I have below, and then I have another table with the daily operational time. I then Merge both in a new table with the Date as a common column. 

kasfour_0-1665660959503.png

kasfour_1-1665661017674.png

 

 

Hi @kasfour 

 

If daily operational time is always 1440 minutes, you can divide downtime by 1440 directly. For example, 

 

Measure = divide(sum('Table'[Downtime]),1440)

 

If you want to calculate it for each service separately, you can add Service column to the same visual, then try measure

 

Measure = calculate(divide(sum('Table'[Downtime]),1440), allexcept('Table', 'Table'[Service]))

 

Best Regards,
Jing

I see your point. However, the problem I am facing, is in the case I had two services down on the same day. So I log them in two seperate rows with the same date. So, in return the date is duplicated in the month range. Example date (8/25/2022) in the previous screenshot

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors