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
Rishabh-Maini
Helper II
Helper II

Add fields as columns instead of rows in a matrix

I need to design a matrix which displays the following information

Property Name

Property State

Property City

Values

 

Ideally, the city and state are added on as rows in the matrix, with an option to drill down to expand the Property.

RishabhMaini_0-1669132286978.png

 

Is there any way to convert these rows into columns, but still in a matrix?
Something like this:

 

RishabhMaini_1-1669132359577.png

 

There are multiple values (that come from a calculation group) so using a table is not an option. 

 

Any help would be appreciated!

4 REPLIES 4
mangaus1111
Solution Sage
Solution Sage

Hi @Rishabh-Maini ,

try to insert these 2 measures in the calculation group

 

1) SELECTEDVALUE('Table'[Property State])

2) SELECTEDVALUE('Table'[Property City])

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @mangaus1111 , thank you for your reply. 


I tried this earlier, but it didn't work. 
I have yearmonth as a column, and it populates the City/State for all year/months. Not sure if there's a workaround for it. 

 

RishabhMaini_0-1669144387599.png

 

mangaus1111
Solution Sage
Solution Sage

Hi @Rishabh-Maini ,

try to use these 2 measures:

1) SELECTEDVALUE('Table'[Property State])

2) SELECTEDVALUE('Table'[Property City])

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @mangaus1111 ,

 

Using a measure messes up the values on the matrix since I'm using Calculation Groups (see below).

RishabhMaini_0-1669134790302.png

 


I've attached a Sample .pbix file here if you need reference!

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.

Top Solution Authors