Copy data From above Row

What will be formula to IF column X Contains Value Yes then copy Data from above Row

Solved Solved
0 28 2,965
1 ACCEPTED SOLUTION

Replace TRUE in the inner SELECT() with an expression to limit the list of row numbers to only those below this rowโ€™s (([_ROWNUMBER] < [_THISROW].[_ROWNUMBER])๐Ÿ˜ž

IFS(
  ([ColumnX] = "Yes"),
  ANY(
    SELECT(
      TableName[Date],
      [_ROWNUMBER]
      = MAX(
        SELECT(
          TableName[_ROWNUMBER],
          ([_ROWNUMBER] < [_THISROW].[_ROWNUMBER])
        )
      )
    )
  )
)

or, equivalently:

IFS(
  ([ColumnX] = "Yes"),
  LOOKUP(
    MAX(
      SELECT(
        TableName[_ROWNUMBER],
        ([_ROWNUMBER] < [_THISROW].[_ROWNUMBER])
      )
    ),
    "TableName",
    "_ROWNUMBER",
    "Date"
  )
)

View solution in original post

28 REPLIES 28
Top Labels in this Space