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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Anonymous
Not applicable

UpTime/DownTime Calculation By Ignoring With Overlapping Time

sivanjali_1-1610463388544.png

 This is my source date .


sivanjali_2-1610463420375.png


And this is my expected out put. 


I have machine downtime(Start) and Uptime(End) dates. I want to calculate my uptime and downtime as shown in the below image. Here the concept is we have to ignore the Overlap timeintervals.

Here is the Sample .pbix https://drive.google.com/file/d/19XcxqyJcBxQy1mZSop4_cF1iEEGm61pJ/view?usp=sharing 

1 ACCEPTED SOLUTION
v-yiruan-msft
Community Support
Community Support

Hi @Anonymous ,

I updated your sample pbix file(see attachment), please check whether that is what you want.

UP DownTime Calculation.JPG

Best Regards

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

View solution in original post

4 REPLIES 4
v-yiruan-msft
Community Support
Community Support

Hi @Anonymous ,

I updated your sample pbix file(see attachment), please check whether that is what you want.

UP DownTime Calculation.JPG

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

@v-yiruan-msft  Thanks for your time. But it's not working as per expectation. 

1. When we select the slicer it should work as per selection.
2. If none selected then it should return overall Downtime which is not more than 24 hours per day. 

@Syndicate_AdminFirst of all thanks for your time.

This is working fine when I slice the data by type 0 but this is not working for type 1 (showing more than 24 hrs per day which is not expected). My main object is to calculate the down time per day which should ignore's the overlapping time.
For example in the below example on 8/26/2020 two machines involved in the Downtime. My expected out put is 23.4 hrs(showing 42.5 because not ignoring the value 19.0) when we don't have any slicer selection but when we select something it has to show the corresponding value for that day (type 0, 23.4 hr's and type 1, 19.0 hr's).

sivanjali_0-1610665224520.png



sivanjali_1-1610665477305.png


Is there any way to make it measure instead of column so we can make this calculation more dynamic in order to consider the slicers.?



@amitchandak @parry2k Is there any way to get the solution for this.?

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors