im trying to convert some routine excel actions to power query but i just cant find the right way.
basicly what im trying to do is to run an if statment that return value based on the row above. for example the following table:
for this table i want to create new column that counts the number of times the same code is shown so the table will look as follow:
in excel the formula im using is: =if(A2=A1,C2+1,1)
*code column is column A and header is at row 1.
is there a way i can iterate via rows in power query the same way as in excel? thanks!