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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
yasirm
Frequent Visitor

Streak count based on two columns

Hi,

I have a table with the following schema

ID CapacityLoadHour
190011000
190012001
190012002
19003003
19002004
190010022
1900100023

 

I would like to have another column which displays the streak count of each ID where Load>Capacity. The streak is based on Hour key. For the above example, my desired output will be this

 

ID CapacityLoadHourMax Consecutive Over Loaded Hours
1900110003
1900120013
1900120023
190030033
190020043
1900100223
19001000233

 

Thank you in advance.

1 ACCEPTED SOLUTION
yasirm
Frequent Visitor
1 REPLY 1
yasirm
Frequent Visitor

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.