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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.