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

Running Total Column based on Index that resets every time there is a zero

Hello,


I'm trying to find the maximum time that a piece of equipment has been running. When the equipment is running, the "Startup" column indicates a 1. When it is shut off, the "Startup" column shows a zero. I would like to find the total time it ran before it had to be shut off again, which would eventually be used in a graph showing the maximum run times (my Final Values). Note that it is not being referenced by a date, but only an index!

 

 

mlapu_0-1626278874228.png

 

Hopefully someone out there can help!

Thank you.

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Picture1.png

 

Link to the pbix file 

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

2 REPLIES 2
Jihwan_Kim
Super User
Super User

Picture1.png

 

Link to the pbix file 

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Hi Jihwan_Kim,

 

The response looks like it would work, but I am getting an error saying there isn't enough memory to calculate! my dataset is about 20k rows. But I agree this looks like it would work. Thank you!

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.