Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
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.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 76 | |
| 37 | |
| 31 | |
| 27 | |
| 27 |