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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Transpose multiple rows in to multiple columns in directquery

ganes_0-1705763869092.png

Hi All,

can anyone please help me to transpose question colum into rows. And it should have its correseponding answer. I am pulling data from bigquery.

column 1 (Number) has 5 entries for 5 diff questions and corresponding answers. I need the 5 questions in indivisual column and its answers get filled in as per the number

1 ACCEPTED SOLUTION

@Anonymous 

oh wow, 

well yes,  directquery wont work with power query pivoting table , it will ask you to use import mode instead.

 

what about pivoting the table in the backend , with sql , or oracle or any language you are using in the backend 

 

 

or another approach maybe useful for you and easier in the backend. 

you can still use the matrix visual

and for the naming of the questions, you can create a new column callled, mapped questions name.

and for the requirement of that you dont want to show all questions, you can in the filter pane -->  filter on the visual, choose the questions that you want to show . 

 

Daniel29195_0-1705789681617.png

 

 

 

does this help you solve your problem ? 

 

 

 

View solution in original post

4 REPLIES 4
Daniel29195
Super User
Super User

Hello @Anonymous 

 

why not using the matrix visual  . this should give you the desired output. 

Daniel29195_0-1705767199136.png

 

 

also if you want to do it in power query  follow the following steps : 
1.go to power query 

Daniel29195_1-1705767330725.png

 

2.select the column questions 

3. click on pivot .  a new window will open

Daniel29195_2-1705767377260.png

 

4.configure it as above.

 

 

you will have the desired output . 

Daniel29195_3-1705767423988.png

 

 

 

hope this helps . 

 

 

 

Anonymous
Not applicable

Hi @Daniel29195,

Problem with Matrix visual is that I don't want to display all the questions. Also, I need to rename the questions in the Table view.

Anonymous
Not applicable

Hi @Daniel29195,

Thanks for responding when I am pivoting it is asking me to import. But I am using direct query as the table is huge more than 600GB

ganes_0-1705768378846.png

 

@Anonymous 

oh wow, 

well yes,  directquery wont work with power query pivoting table , it will ask you to use import mode instead.

 

what about pivoting the table in the backend , with sql , or oracle or any language you are using in the backend 

 

 

or another approach maybe useful for you and easier in the backend. 

you can still use the matrix visual

and for the naming of the questions, you can create a new column callled, mapped questions name.

and for the requirement of that you dont want to show all questions, you can in the filter pane -->  filter on the visual, choose the questions that you want to show . 

 

Daniel29195_0-1705789681617.png

 

 

 

does this help you solve your problem ? 

 

 

 

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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 Solution Authors