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
ATREZISE
Helper I
Helper I

Create Pivot Table

Hi

 

I'd like to convert / pivot a table using the name of its columns into rows in a tabular format

The source data looks something like TABLE A below. I'd like it to per as TABLE B...i.e. the column names become data in the appropriate rows:

Is this possible?
Sample.png

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

@ATREZISE

You can select all the question columns, right click on them and choose Unpivot Columns

View solution in original post

v-xicai
Community Support
Community Support

Hi @ATREZISE ,

 

Enter into Query Editor, click on column Question 1 and Question 2 at the same time, click "Unpivot Columns", rename this result column with "Question". Don't forget to click the "Close & Apply" button.

 

5.png

Best Regards,

Amy

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

4 REPLIES 4
v-xicai
Community Support
Community Support

Hi @ATREZISE ,

 

Enter into Query Editor, click on column Question 1 and Question 2 at the same time, click "Unpivot Columns", rename this result column with "Question". Don't forget to click the "Close & Apply" button.

 

5.png

Best Regards,

Amy

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Thanks - that works perfectly

Anonymous
Not applicable

@ATREZISE

You can select all the question columns, right click on them and choose Unpivot Columns

Thanks - Perfect

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.