I've already tried looking on here for the answer to this question, and although have found similar queries, I haven't found this exact one.
I'm looking to count the instances of a customer getting a certain score, and if they get less than that score I'd like the count to be reset.
This is the data I have:
And this is the result I would like to produce:
Any help would be appreciated, as well as an explanation of any advanced code used.