Search code examples
spotfire

Spotfire expression - get the minimum of the next indicator per id


for every id, I am trying to get the minimum date of the next indicator next to the previous indicator. it is similar to lead in sql. the wished result is in the column target.

enter image description here


Solution

  • @OUMOUSS_ELMEHDI - Below OVER function should give you the desired result.

    Min([Timestamp]) OVER (Intersect(Next([Indicator]),[ID]))
    

    Here is the final result table:

    enter image description here