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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Changin Matrix Layout

I have created a matrix where my columns are "Cantidad" and " Costo" that are clustered by "Periodo". Periodo is a feature whereas Costo and Cantidad are measures and therefore I have place them in values. I wish I could display all Costo as 1 big group with Periodo as a lower level and next to it, Cantidad, so to say it short change the columns hierarchy considering that the lower current level are measures.

 

I hope I have made it clear 

 

AlekseiNexa_0-1603514757596.png

 

1 ACCEPTED SOLUTION
AllisonKennedy
Community Champion
Community Champion

This can be done easily in Excel, but I don't know a way in Power BI - you can check custom visuals as they might have a solution or vote for it in ideas: https://ideas.powerbi.com/

What you can do, is create a calculated table that contains an [Attribute] column for 'Cantidad' and 'Costo' and a [Value] column for the values. Depending on your raw data setup there are various ways to do this, either with M or DAX.

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

View solution in original post

1 REPLY 1
AllisonKennedy
Community Champion
Community Champion

This can be done easily in Excel, but I don't know a way in Power BI - you can check custom visuals as they might have a solution or vote for it in ideas: https://ideas.powerbi.com/

What you can do, is create a calculated table that contains an [Attribute] column for 'Cantidad' and 'Costo' and a [Value] column for the values. Depending on your raw data setup there are various ways to do this, either with M or DAX.

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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