Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

unipivot data - in three sheets depending on data? - Example-Solutions are build with VLOOKUP



I have the following XLSX. (Example file link)

In this file you see a sheet called blogliste_gmc - that's the data.sheet that should be unipivot.


Data-SheetData-Sheetunipivot - Solution - at_attributunipivot - Solution - at_attributunipivot - Solution - mm_merkmalunipivot - Solution - mm_merkmalunipivot - Solution - woa_elementunipivot - Solution - woa_element


And three solution sheets (how to transform it)


Can someone help me?


Many Thanks




Super User
Super User



It looks like you have two sets of data.

  • Data1 is the information in the table
  • Data2 is the information above the table
    • Data2 is associated with Data1 on the value in row 4



If we treat it as two data sets we can pull them in separately, transform them and join them together.


Data1 is just unpivoting all columns except the first 3



Data 2, we

  • Remove the first 3 columns
  • Keep just the first 4 rows
  • Transpose the data
  • Rename the columns



Once this is done you can join the two table together on the Attribute column (the one that is in both data sets aka row 4) and pivot / filter it however you like.





I have created a PBIX file pointing at your xlsx file for you to look at.




Helpful resources

May 23 2022 epsiode 5 without aka link.jpg

The Power BI Community Show

Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

Power BI Dev Camp Session 22 with aka link 768x460.jpg

Check it Out!

Join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!

Top Kudoed Authors