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
Frequent Visitor

Calculating service % Availability based in incident total time excluding non operational hours

Hi Experts
I have been working on this issue to much and seem to have hit a total blank

I have a problem to calculate the % availability for a service based on the total downtime of all the minutes the service had incidents logged against it. The measure should accommodate for slicing the data based on Dates (FY hierarchy) or sites (not all sites have all services) or Priority etc.


I have calculated the total minutes each incident impacted the availability for every incident. (Calculated Colum)
Each site has different operational hours and the impacted minute calculation takes this into account (closed times do not count to the total).


I have a measure in the Pbix file included but this calculates incorrectly.

 

Perhaps someone can assist me.

 

https://drive.google.com/drive/folders/1MFnRLiB81PmtC5t2muGxRVx0g_QPrelO?usp=sharing

 

Regards

2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @Werick 

 

Maybe you can try the following methods.

Measure:

%Availability = 
VAR _BASELINE_VALUE =
    CALCULATE (SUM ( Incidents[Total Business Minutes for the Day] ),
        FILTER (ALL ( Incidents ),
            [priority] = MAX ( Incidents[priority] )
            && [supporting_service] = MAX ( Incidents[supporting_service] )))
VAR _VALUE_TO_COMPARE =
    CALCULATE (SUM ( Incidents[Business Minutes impacted] ),
        FILTER (ALL ( Incidents ),
            [priority] = MAX ( Incidents[priority] )
            && [supporting_service] = MAX ( Incidents[supporting_service] )))
VAR _Avail = DIVIDE ( _BASELINE_VALUE - _VALUE_TO_COMPARE, _BASELINE_VALUE )
RETURN
    IF ( ISBLANK ( _Avail ), 1, _Avail )

vzhangti_0-1642996347531.png

If the method I provided above can't solve your problem, what's your expected result? Could you please provide more details for it?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi

 

This does not solve the issue. 

 

The measure now only supports "slicing" the data for priority and not anything else.

 

I want to be able to change the priority columns to lets say Site or maybe FY-Month.

 

So i need a "generic" availability.

 

 

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.