How I get next date value according to row value

Hi

I am trying to get the next date value for each people

I have tried to make a VC, but I got me the next row not the next row according to name

LOOKUP([_THISROW].[_RowNumber]+1, “table”, “_ROWNUMBER”, “date”)

I have a table like this:

 

namedate 
julian3/3/2022
julian 7/4/2022
Paul10/3/2022
Mary4/4/2022
John3/5/2022
Mary15/6/2022

 

the  desired outcome:

namedate next date
julian3/3/20227/4/2022
julian 7/4/2022 
Paul10/3/2022 
Mary4/4/202215/6/2022
John3/5/2022 
Mary15/6/2022 

 

thanks!

 

Solved Solved
0 2 123
1 ACCEPTED SOLUTION

Try the following

MINROW(
  "table", 
  "date", 
  AND(
    ([name] = [_THISROW].[name]),
    ([date] > [_THISROW].[date])
  )
)

View solution in original post

2 REPLIES 2

Try the following

MINROW(
  "table", 
  "date", 
  AND(
    ([name] = [_THISROW].[name]),
    ([date] > [_THISROW].[date])
  )
)

Thanks! @graham_howe 

Top Labels in this Space