Read the values ​​of the previous or next record

Hi,
I am in a View Detail… I am trying to set some actions that will affect the values ​​of the previous or next record of the current one…
I need to retrieve the value [_RowNumber] of adjacent records, is it possible?

Thanks for your attention…

Immediate preceding _RowNumber:

MAX(
  SELECT(
    Table[_RowNumber],
    ([_THISROW].[_RowNumber] > [_RowNumber])
  )
)

Immediate following _RowNumber:

MIN(
  SELECT(
    Table[_RowNumber],
    ([_THISROW].[_RowNumber] < [_RowNumber])
  )
)
3 Likes

I hadn’t even thought of that… it’s easier than I thought… perfect…
Thanks…

1 Like