Forum Discussion

joelv67's avatar
joelv67
Frequent Visitor
9 years ago
Solved

Combining rows and generating TimeSpan difference on date column

Application Module ExternalTaskId TaskType CreateDate LocalApp Mod1 1 1 12/6/2016 12:01:00 PM LocalApp Mod1 1 2 12/6/2016 12:09:00 PM NetApp Mod2 1 1 12/6/2016 12:02:00 PM Ne...
  • MattAllington's avatar
    9 years ago

    There are normally better or worse approaches depending on what you are trying to do. But that aside, you could do this in Power Query (get data).  

     

    Load the table

    add an index column

    create a custom column that is the index +1 (call it next)

    save the query but don't load it

    join the table to itself on the index = next column. 

     

    When done, delete all the columns you don't need, including the Index columns