Forum Discussion
LuizMartins
4 years agoRegular Visitor
help calculate duration between lines
Hi guys, I need some help. I have a data file where I need to calculate the duration between lines. In excel I use the simple formula. I would like to do the same directly in powerbi. Any suggestion...
- 4 years ago
LuizMartins , Add an index column in power query
Power Query- Index Column: https://youtu.be/NS4esnCDqVw
Then create a new column
datediff(maxx(filter(Table, [Index] = earlier([Index]) -1) ,[B]), [B], second)
amitchandak
Super User
4 years agoLuizMartins , Add an index column in power query
Power Query- Index Column: https://youtu.be/NS4esnCDqVw
Then create a new column
datediff(maxx(filter(Table, [Index] = earlier([Index]) -1) ,[B]), [B], second)
LuizMartins
4 years agoRegular Visitor
Perfect! Thank you very much!!