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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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
Super User
Super User

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
Super User
Super User

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.