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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.