The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi All, I would like to change the layout of matrix.
I use measure for sum of sales and CGS.
Current layout
Desired Layout
Do you have any good idea?
Thanks in advance.
Solved! Go to Solution.
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.
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
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.
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
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.