Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Time diff between stages

Hi! I have a poblem with proper calculate time between stages. I give you a sample of data. I have in this case three different orders (first column). I want to calculate proper time between sta...
  • ryan_mayu's avatar
    5 years ago

    Anonymous 

    pls try this

    Column = 
    VAR _last=maxx(FILTER('Table','Table'[Supporting Column]=EARLIER('Table'[Supporting Column])&&'Table'[index1]=EARLIER('Table'[index1])-1),'Table'[Data])
    return if('Table'[index1]=1,blank(),DATEDIFF(_last,'Table'[Data],SECOND))