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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. 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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.