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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
CA2021
Regular Visitor

Matrix and Unpivot Column

Hi,

I'm presenting a data via a matrix and I would like the user to be able to manually select the columns that will be displayed. I tried unpivoting the columns so I can select the columns using a slicer but I can no longer add another parameter (Region). The attached screenshot shows the the two visuals - first is the normal matrix and my desired output minus being able to manually select the columns to be displayed; second is where the columns can be selected but needs to have the "Location" added. Is it possible to do this?

2021-05-24_17-03-11.jpg

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @CA2021 

According to your statement, I know the result you want is like first martix. However, you couldn't select columns in level2 like(Books, Chairs...) by slicer.

I think you can transform second matrix to achieve your goal. Add 'Region' in Matrix Column instead of Matrix Row and it should be one level above 'Attribute'.  Then you can use drill up/down function.

1.png

Click 'Expand all down one level in the hierachy' in Red box. Then you can get your desire result and you can select columns by slicer.

2.png

Best Regards,

Rico Zhou

 

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

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @CA2021 

According to your statement, I know the result you want is like first martix. However, you couldn't select columns in level2 like(Books, Chairs...) by slicer.

I think you can transform second matrix to achieve your goal. Add 'Region' in Matrix Column instead of Matrix Row and it should be one level above 'Attribute'.  Then you can use drill up/down function.

1.png

Click 'Expand all down one level in the hierachy' in Red box. Then you can get your desire result and you can select columns by slicer.

2.png

Best Regards,

Rico Zhou

 

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

This does it. 

 

Thank you @Anonymous 

amitchandak
Super User
Super User

@CA2021 ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

In this case location, region and attributes should be columns

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

Thanks, @amitchandak.

 

Attached is the sample .pbix file. The first page is my desired output visually speaking. The change that I would like to have with it is to be able to manually select the columns the matrix has.

 

Ont he other hand, the second page is what I was able to create. The Regions is in rows and not columns.

 

The goal is I would like to compare the values of my Attributes side by side and not in a column (visually seen in Page 1).

 

Here's the link to the .pbix file: https://drive.google.com/file/d/1xAK8ZEe_nSv0hmbPDwixJUH3g7l4JEDx/view?usp=sharing 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon & SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.