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
Anonymous
Not applicable

Working out time in error

Hi, 

 

I have a dataset with time and date and two indicators "Confirmed error" and "No error".

Im trying to calculate the time from the first "Confirmed error" to the next "No error". Sometimes multiple "Confirmed errors" are in a row and sometimes there is just one.

Im at a loss on how to calculate this. 


Is anyone able to assist?

Here is the multiple errors in a row

fergussonr_0-1684130003127.png

 

And here is the one

fergussonr_1-1684130053938.png

 

 

 

3 REPLIES 3
Anonymous
Not applicable

Thanks @lbendlin 
Unfortunately I cannot seem to paste my data in to this site without issues around HTML formatting. I even get errors when I create a table using the built in tools and type data into it. 
This may be due to firewalls etc between me and this platform.

 

However my expections is below, if utilising the screenshots you are able to help that would be great. Otherwise Ill work on another way of getting around this issue.

My expectation is as follows. I need to work out how to calculate the amount of time that the error existed. Where there are errors I need to work out the time from then to the next No error. (Understanding the time in error). If the error continues beyond more than one entry that is added to the calculation. 

For example it would work if each entry with the Error level of Confirmed error calculated had another calculated column that would calculate the time from the Date/Time column till the next entry. 

sorry, no screenshots. Follow the guidance in the link I posted.

lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors