Forum Discussion

rs1249's avatar
rs1249
Helper I
3 years ago
Solved

How to reference previous row in the same column

Hi Guys, I had looked at other forum on how to reference previous rows, nothing appears can solve this simple issue I had, well at least it is very simple in excel, but for some reason, in power quer...
  • HotChilli's avatar
    3 years ago

    The error is thrown because the 'else' clause uses the table as it exists in the previous step, but the column 'custom' doesn't exist at that step.

    I think, to keep things simple, if you just use the same code but replace the 'else' part with 'else null', you can add another step afterwards and do a 'Fill Down' that should work.

    It will depend on the data being correctly ordered and there being a correct 'Initial Entry' for each 'set' of data