Forum Discussion
Anonymous
6 years agoNot applicable
Calculated column making reference to another row
Hello i need help with the next issue: I need to calculate the difference between 2 dates in the subsequent row if two conditions are achieved the number one is the column [Evento] = "BAJA-DEFINITIVA...
Mariusz
Community Champion
6 years agoHI Anonymous
Sure, try something like this.
Column =
IF(
'Table'[Evento] = "BAJA - DEFINITIVA",
VAR __date = 'Table'[Fecha del evento]
VAR __nextDate =
CALCULATE(
MIN( 'Table'[Fecha del evento] ),
ALLEXCEPT( 'Table', 'Table'[Plaza Unica] ),
'Table'[Fecha del evento] > __date
)
RETURN
IF( NOT ISBLANK( __nextDate ), __nextDate - __date )
)
Best Regards,
Mariusz
If this post helps, then please consider Accepting it as the solution.
Mariusz
If this post helps, then please consider Accepting it as the solution.