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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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