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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Yamada1
Frequent Visitor

How to change layout of matrix

Hi All, I would like to change the layout of matrix.

I use measure for sum of sales and CGS.

Yamada1_3-1693468490012.png

 

 

Current layout

Yamada1_1-1693468346791.png

Desired Layout

Yamada1_2-1693468457031.png

 

 

 

Do you have any good idea?

Thanks in advance.

 

3 ACCEPTED SOLUTIONS

Thank you for quick advise.

If the data is like the below,  is it possible to change this layout?

I could not attached the xcel file or Power BI file so I attahced just the screen shot.

Yamada1_0-1693472827199.png

 

View solution in original post

Hi @Yamada1 ,

 

This is the current layout from the pbix I attached

View solution in original post

Anonymous
Not applicable

Hi @Yamada1,

You can do unpivot columns on the Sales and CGS fields to convert them to attribute and value.

Unpivot columns - Power Query | Microsoft Learn

Then you can put the attribute field on matrix column and above the Quarter field and use value field on matrix value field to achieve your requirement.

Regards,

Xiaoxin Sheng

View solution in original post

5 REPLIES 5
mussaenda
Super User
Super User

Hi @Yamada1 ,

 

mussaenda_0-1693470548778.png

 

Thank you for quick advise.

If the data is like the below,  is it possible to change this layout?

I could not attached the xcel file or Power BI file so I attahced just the screen shot.

Yamada1_0-1693472827199.png

 

Anonymous
Not applicable

Hi @Yamada1,

You can do unpivot columns on the Sales and CGS fields to convert them to attribute and value.

Unpivot columns - Power Query | Microsoft Learn

Then you can put the attribute field on matrix column and above the Quarter field and use value field on matrix value field to achieve your requirement.

Regards,

Xiaoxin Sheng

Hi @Yamada1 ,

 

This is the current layout from the pbix I attached

Thank you mussaenda.

I undersood, your idea.

If sales amount cloumn and CGS amount clumn is separete, is it possible to make same layout which you suggest?

 

Thanks.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.