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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Matrix

Hello, 


I am struggling with a matrix. 

Is there a way to create a table/matrix that looks like the one below

 

MT123456_0-1697644494475.png

 

where the data I am using has the below structure? 

 

MT123456_0-1697644691370.png


Is there a way to achieve this without using the unpivot columns? 


Thank you! 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @Anonymous 

You don't need to unpivot the table to get this result, you just need to switch values to rows and put the group to columns.

Ritaf1983_0-1697690225246.png

 

Link to the sample file 

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

4 REPLIES 4
mickey64
Super User
Super User

For your reference.

 

Step 1: I click 'Use Headers as First Row' 

    mickey64_0-1697691458924.png

    mickey64_1-1697691599516.png

Step 2: I click 'Transpose'.

    mickey64_2-1697691647719.png

    mickey64_3-1697691701427.png

Step 3: I click 'Use First Row as Headers'.

    mickey64_4-1697691931599.png

    mickey64_5-1697691966868.png

Step 4: I add a column.

    mickey64_6-1697692039467.png

    mickey64_7-1697692111195.png

    mickey64_8-1697693507087.png

Step 5: I cahnge the type of 'Total' column to 'Whole Number'.

    mickey64_10-1697693670333.png

 

 

 

 

 

 

 

 

 

Uzi2019
Super User
Super User

Hi @Anonymous 
You can do it by clicking on below option under value setting

Uzi2019_0-1697691681453.png

 

 

If I answered your question please give kudos and accept it as a solution!
Thanks

Don't forget to give thumbs up and accept this as a solution if it helped you!!!
Ritaf1983
Super User
Super User

Hi @Anonymous 

You don't need to unpivot the table to get this result, you just need to switch values to rows and put the group to columns.

Ritaf1983_0-1697690225246.png

 

Link to the sample file 

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Anonymous
Not applicable

Thank you so much, it was much easier than I thought! 

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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