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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.