Hi Søren - thanks for your help and patience with this mate :
I've just checked out your attachment, and it's not quite what I was after. You've only taken into account the last instance of an attempt on a unit. So if Scuba Steve took 4 attempts to finish his 111 assessment, then in your report only the attempt 4 is showing. I also need to take into account the first 3 attempts. This means that Glenfield, should be showing 5 x 1st attempts, 4 x 2nd attempts etc. Would you know how we can get this?
The way I previously did it, when I had the attempt number as a field, was to have fields with case functions:
Case (attempt = "1" ; 1 ; 0)
Case (attempt = "2" ; 1 ; 0) etc
and then have these totaled, using another summary field which worked just fine.
Also, would you mind briefly explaining the LET() formula you gave me? Best if I understand what it's about, so that I can learn for the future