Duration Between rows

Hi everyone, Im trying to calculate de duration between the value in a new row and the last one.

i've been trying this formula

([_THISROW].[Horas Totales])-(INDEX(Reservorio[Horas Totales],COUNT(Reservorio[Horas Totales])))

problema horas.png

Horas Totales" column is always an increasing value

 

thank you in advance

Solved Solved
0 2 118
1 ACCEPTED SOLUTION

For a table like this (I call it LOGS2), assuming [clock_time] is always in ascending order

TeeSee1_0-1647802003383.png

You set the Initial Value expression to [time_elapsed]

[hours_total] -
ANY(SELECT(LOGS2[hours_total],
 [id]=MAXROW("LOGS2","clock_time")
))

 

View solution in original post

2 REPLIES 2

For a table like this (I call it LOGS2), assuming [clock_time] is always in ascending order

TeeSee1_0-1647802003383.png

You set the Initial Value expression to [time_elapsed]

[hours_total] -
ANY(SELECT(LOGS2[hours_total],
 [id]=MAXROW("LOGS2","clock_time")
))

 

Thanks! that worked!

Top Labels in this Space