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

DAX to get SUM of columns above a certain record

Hello - I am looking for a DAX measure that sums up the duration minutes for those records before and after the "Changeover" record. So I am looking for a measure that would be 25.91 (sums up the first two records for Producing and Discharge Backup prior to the "Changeover" record) and then another measure that would be 7.92 which is the Producing record after the Changeover one. I'm trying different stuff but can't quite get how to find the changeover record and then go from there. 

 

RGallagher320_0-1611886892173.png

 

Any help would be awesome. Thank you!

1 REPLY 1
amitchandak
Super User
Super User

@RGallagher320 ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.