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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
Community Champion
Community Champion

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.