Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Convert excel matrix table to flattened table

The Excel tables that I receive for import into Power BI always have data arranged as a matrix.   Where is a good place that I can learn how to convert a matrix into a flattened table?   I've fou...
  • Ashish_Mathur's avatar
    8 years ago

    Hi,

     

    Instead of having 2 rows for every column, have just one.  So row 2 should have Year, DHB, Maori - Enrolled, Maori - Populaiton etc.  Once that is done, take the data to the Query Editor, right click on the first 2 columns and select Unpivot other columns.  You may then split the attribute column by the - delimiter.

     

    Hope this helps.