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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors