Hello,
I need to create the 'Defect #' column as shown below, I assume this is relatively easy with the Multi Row Formula tool, but can't write the correct syntax

I tried the following:
IF [Result] = "Fail" THEN 1 ELSE Null()
ELSEIF [Row-1:Defect #] != Null() THEN [Row-1:Defect #]+1
ELSE Null()
ENDIF
Many thanks