I have a simple loop - see attachement - that are returning values for a prognosis calculation. I had to loop this to be able to connect to other tables, because there's no useful dates in the table, just a date when the post is created.
One value should be used until a new value appear in that column, like:
P12 a b
P1 - -
P2 c d
P3 - -
and so on. So the value for P1 should be the last recorded = P12 and for P3 = P2
So I must have the loop to "autofil" the last existing values where the fields are empty or null. Like: