cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
n8schicht
Helper I
Helper I

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

Hello,

 

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

 

 

 

1 REPLY 1
jdbuchanan71
Super User
Super User

@n8schicht

 

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

data1.jpg

 

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

Data2.jpg

 

Data 2, we

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

RemoveColumns.jpgRemoveRows.jpgTranspose.jpg

 

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.

 

join.jpg

 

 

I have created a PBIX file pointing at your xlsx file for you to look at. https://www.dropbox.com/s/2643sop0a4lp2iz/merkmale_erstellen_automatisch_forum.pbix?dl=0

 

 

 

Helpful resources

Announcements
June 2022 update 768X460.jpg

Check it out!

Click here to read more about the June 2022 updates!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors