Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Unpivot Data in Power BI

I have an Excel file that looks like this:

Component Italy Austria Germany
One Not active Not active Active
Two Active Not active Active
Three Active Not active Not active
Four Not active Active Active

I wanted to create a normalized table to use in Power BI,

Component Country Status
One Italy Not active
One Austria Not active
One Germany Active
Four Italy Not active
Four Austria Active
Four Germany Active

Usually the normalized tables are the one I use in Power BI, my question is:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

  • is there any way to transform the data source in Power BI to have the normalized structure? or
  • is it possible to handle the original format in Power BI in some way?

>Solution :

You should definitely reshape this data. When importing in PQ, highlight the Component column and then on the transform tab of the ribbon, select unpivot other columns. You can then rename the columns as you see fit.

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading