Forum Discussion

Danielnir's avatar
Danielnir
Helper II
4 years ago
Solved

Reshaping Dataset with Power Query

Hi All,   I have a dataset with all the downtime information. Every row contains information from a paper document used by production staff. Because of that, each downtime event is stored under a s...
  • serpiva64's avatar
    serpiva64
    4 years ago

    If it's better for you in order to adapt the solution to your necessity here are the steps i used:

    - first add a index column

    - reorder it to the first column

    - select the first 3 column and unpivot other columns

    - now you need to replace characters 1 and 2 in order to have a unique DK and PI

    - group rows

    - add a new index column inside your column of tables

    -remove all columns beside the last one

    - expand all

    - and then finally pivot it again