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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
bo_afk
Post Patron
Post Patron

Metrics as rows in matrix

Hi,

 

I have a dataset which includes the following columns: Category, sales, cost, margin.

 

I would like to create a matrix such that Category is at the top, with the metric names on the side and values inside the table, such as below.

 

 Category ACategory BCategory C
Sales###
Cost###
Margin###

 

However, when I move the "sales" column as a row, it displays all the possible sales values as opposed to the column name "sales". Have been playing around with the matrix but nothing seems to work. Is this actually possible?

 

Thanks

afk

3 REPLIES 3
dyingod
Helper I
Helper I

Just for archiving and making sure others find this:

 

I guess Power BI eventually added the functionality below to make this less painful. Here is a link to where I found it.

 

https://www.thelemondataguy.com/how-to-change-a-grid-layout-to-horizontal-in-power-bi#:~:text=So%2C%....

Ashish_Mathur
Super User
Super User

Hi,

This should be possible by "Unpivoting other columns".  Share data in a format that i can paste it in an Excel file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-frfei-msft
Community Support
Community Support

Hi @bo_afk ,

 

Did you want to create a matrix as below? As the data you describe, seemed that we cannot achiev that. As table visual is different with matrix.

 

  SALEs Category B Category C Category A
Cost xx # # #
Margin xx # # #
Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.