Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Merge Rows

I have a table for a listing of employees where it captures a timestamp and event type (start shift, start break, end break, end shift) as different rows. so one employee may have event ID 1 with a t...
  • Anonymous's avatar
    Anonymous
    7 years ago

    Hey Anonymous 

     

    I'm making some presumptions here, so if I am way off the mark I apologize. 

     

    I think you want to use 'transpose.' I use this a lot more in Excel, but it does the same thing in power query. Here is what my data looked like when I started (I'm modeling mine based on how I understood your description). I have columns for my employees. I then have to use headers as first row. After doing that, I can use transpose to use the columns as rows.

     

     

     

     

     

     

     

     

     

     

     

    The below is just a screenshot of me demoting the headers.

     

    At this point, I can click 'transpose' & the data should switch. The last step would then be to promote my headers & I think I have the data where you need it to be. The 'transpose' btn is directly below the 'transform' tab.

     

    Hope this helps!