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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Bokazoit
Continued Contributor
Continued Contributor

Create matric with data from same column

I have this dataset with multiple questions and answers:

 

Bokazoit_0-1692605116899.png

 

The above shows only data from 2 question, but there are 18 different questions. 

 

Is it possible in any way, using the data as they are represented above, to create a matrix that uses the question marked with blue on the row and the question marked with red on the column and then use the column 'Amount' as sum ?

 

I tried myself, but using the same column and filter for a question in the row rules out using the same question-column as column in a matrix. Am I missing a simple solution to this problem?

5 REPLIES 5
JoeBarry
Solution Sage
Solution Sage

Hi @Bokazoit 

 

To achieve this, you may need to duplicate the tables and filter the questions to Blue questions and Red Questions. 

 

Create a Dimension table with the SurveyID as a distinct value. You should also have Date table.

 

Load the tables into Desktop and create a relationship with the Dimension table to both tables on the Survey ID column and the Date table on the Date column (Date table should be marked as date table) https://learn.microsoft.com/en-us/power-bi/guidance/model-date-tables 

 

Create a measure

 

Amount = sum(BlueQuestions[Amount]) + sum(RedQuestions[Amount])

 

In the Matrix, add the Blue Question in the Row section and the Red Question in the column section then add the Amount measure

Bokazoit
Continued Contributor
Continued Contributor

Can't be done, since I need to filter out the question:

Bokazoit_0-1692607507540.png


It fails because I only need the answer for that particalur question on the row, and when I need answers for the column it says - forget it...

Am I doing something wrong?

I have added a question dimension table also. It seems to have removed errors. I have created a PBIX to look through https://drive.google.com/file/d/1ECGfUUTD5iAgKQJckQb4f4VI34PdAoJ9/view?usp=sharing 

Bokazoit
Continued Contributor
Continued Contributor

Okey, using that aproach is the same in a way as craating a model for surveys with mulitple questions and multi-answers. That produces one dimension for every question with answers inside.

 

I already have that, but building a datamodel with several surveys inside and by that a huge amount of dimQuestion's is not very userfriendly in an organisation.

 

Therefor I was hoping for a solution where I could cross two questions from the same column with answers on its own row and column.

 

But that seems impossible i am afriad 😞

Bokazoit
Continued Contributor
Continued Contributor

Hmmm, I think I tried that, but will give it a try again. Return with the result if succes or failure 🙂

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors