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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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