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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Append in Matrix (or not Grouping rows)

Hello everyone!

I have built a fact table A that its rows are combination of every person and question made to that person and its answer (Yes/no). It looks like that:

GabrielQM_0-1639609249720.png

And I have one dimension table with all questions listed and 2 columns that gives 2 classifications of that question. Something like that:

GabrielQM_1-1639609346280.png

 

So, at my report, I want to build a matrix that shows something like the following:

 

GabrielQM_2-1639609564122.png

 

But I can't seem to achieve it, the only result that i get is building two matrix, one for type_1 rows and other for type_2:

GabrielQM_4-1639609908418.png

 

When i try to append the rows by inserting both fields in the row section, i just get the combination of them both.

Is that a way to achieve it? 

 

Thanks in advance,

Gabriel Monteiro

 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , You can unpivot the table 2 (Type_1, Type_2) , that will create a many to many case, but it should work

 

https://radacad.com/pivot-and-unpivot-with-power-bi

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Thanks @amitchandak , that's what i was looking for, but i was afraid of using Many to Many relationship. Just for curiosity, Is that another way to solve this?

 

amitchandak
Super User
Super User

@Anonymous , You can unpivot the table 2 (Type_1, Type_2) , that will create a many to many case, but it should work

 

https://radacad.com/pivot-and-unpivot-with-power-bi

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors