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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
emilyhch
Frequent Visitor

Pivot or?

Hi there! 

 

I have a problem that I hope to get your insigh and help! I feel like it is related pivot or some sort but lacking knowledge and experience in this so cannot figure it out. I tried Matrix visual but that only gave me the counts but I need it to show the actual text/response in that cell. 

 

I have a table (data is linked through a SQL database) containing response ID, question ID and corresponding responses similar to below:

 

Response IDQuestion IDResponse
112(text)
113(text)
114(text)
212(text)
213(text)
312(text)

 

But I would like to visulize the responses like this: 

Response IDQuestion 12 Response Question 13 Response Question 14 Response 
1(text)(text)(text)
2(text)(text)(text)
3(text)(text)(text)

 

How should I do it? 

 

Thank you very much! 

 

Emily

 

1 ACCEPTED SOLUTION
vicky_
Super User
Super User

if each combo of question and response only has one answer (or if you only want to show the first / last answer), then you should be able to use a matrix visual:

vicky__0-1715034200298.png

If there's more than one text and you need to show all, then you can write a measure:

i.e my sample data:

vicky__1-1715034319456.png

and measure: 

All Responses = CONCATENATEX(VALUES('Table'[Response]), 'Table'[Response], ", ")

and the output: 

vicky__2-1715034345130.png

 

View solution in original post

1 REPLY 1
vicky_
Super User
Super User

if each combo of question and response only has one answer (or if you only want to show the first / last answer), then you should be able to use a matrix visual:

vicky__0-1715034200298.png

If there's more than one text and you need to show all, then you can write a measure:

i.e my sample data:

vicky__1-1715034319456.png

and measure: 

All Responses = CONCATENATEX(VALUES('Table'[Response]), 'Table'[Response], ", ")

and the output: 

vicky__2-1715034345130.png

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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