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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.