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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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