Forum Discussion

TheDub's avatar
TheDub
Iron Contributor
May 01, 2024
Solved

Referring to PREVIOUS rows only within BYROW() (or any other function)

Apologies if this has been addressed previously, but I couldn’t find an answer. I believe the issue is the same for both situations below – which is the reason why I didn’t post two separate question...
  • PeterBartholomew1's avatar
    May 01, 2024

    TheDub 

    The first part might be

    = LET(
        currentMax, SCAN(0, currentValue, MAX),
        priorMax,   DROP(VSTACK(0, currentMax), -1),
        action?,    currentMax > priorMax,
        HSTACK(currentMax, IF(action?, "New Max!", "Same old"))
      )

    giving

     

Resources