Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Rahulmg2002
Frequent Visitor

unpivot table

Hello friends, 

I would like to unpiot m data in PowerBI . To explain it better i am attahcing images. please let me know how i can get this result an how. many thanks

Rahulmg2002_0-1683611596869.png

 

 

 

 

1 ACCEPTED SOLUTION
DOLEARY85
Resident Rockstar
Resident Rockstar

Hi,

 

you can do this with a few steps in power query,

 

  1. Duplicate your table
  2. Delete the response columns in table 1
  3. Delete the Item columns in table 2
  4. Unpivot the columns in both tables
  5. Add an index column to both tables
  6. Select the first table and merge queries with the 2nd table matching on the index column
  7. expand the table field and select only the attribute field
  8. delete the attribute and Index column from table 1
  9. Rename your columns Item and Response

starting:

DOLEARY85_0-1683647706345.png

Result:

DOLEARY85_1-1683647731678.png

 

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

 

View solution in original post

2 REPLIES 2
DOLEARY85
Resident Rockstar
Resident Rockstar

Hi,

 

you can do this with a few steps in power query,

 

  1. Duplicate your table
  2. Delete the response columns in table 1
  3. Delete the Item columns in table 2
  4. Unpivot the columns in both tables
  5. Add an index column to both tables
  6. Select the first table and merge queries with the 2nd table matching on the index column
  7. expand the table field and select only the attribute field
  8. delete the attribute and Index column from table 1
  9. Rename your columns Item and Response

starting:

DOLEARY85_0-1683647706345.png

Result:

DOLEARY85_1-1683647731678.png

 

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

 

thank you @DOLEARY85 , i will give it a go and let you know how it goes. 

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors