I am working in-db in a Snowflake environment and find I'm unable to recreate the formula in yellow in the attached excel sheet/ in the Desktop workflow.
Essentially, I need a formula in-db that refers to itself, in the way that I would use the Designer Multi-Row tool. F.ex. if I defined [New Field] in the Multi-Row tool, I could use [Row-1:New Field] in the expression.
However, in in-db, I can only use Lead/Lag functions in a new field that refer to already existing fields. Is there any way out there to do this in-db? (Streaming in and out is not an option. There is too much data).
I've attached sample data, the way the workflow would look with regular Designer tools, and also a stub of an in-db workflow (not necessary i think, but just to be thorough).
Any help would be appreciated!! Thank you!