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
mibshara
New Member

Show values in a matrix based on a person name.

I am new to Power BI and trying to get a matrix to show information based on a column value, and have all other columns seperated vertically for every row in the first column.

Here is more details:

 

Table_A have three columns.      Person_Name | Question | Answer

Row 1:                                         John | How old are you? | 25

Row 2:                                         Nicole | How old are you? | 28

 

The way I would like my dashboard to show it is as follows:

 

John

----

Question | Answer

How old are you? | 25

 

Nicole

----

Question | Answer

How old are you? | 28

 

Any ideas?

 

1 REPLY 1
v-haibl-msft
Microsoft Employee
Microsoft Employee

@mibshara

 

We can create an almost same Matrix with following steps. For details, you can refer to the attached PBIX file.

 

1. Create a measure using following DAX formula.

Measure = 
IF ( ISFILTERED ( Table1[Question] ), CALCULATE ( MAX ( Table1[Answer] ) ) )

2. Drag Personal_Name, Question into Matrix Rows, Measure into Matrix Values. Rename Personal_Name and Measure in Fields.

Click Expand all down one level in the hierarchy in the top left corner.

 

Show values in a matrix based on a person name_1.jpg

 

Best Regards,
Herbert

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