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
Anonymous
Not applicable

How to rearrange attributes column in Matrix

Hi All,

 

I have a Matrix which only shows attributes of user selections with slicers. But do you guys know how to rearrange the attributes column according to my needs?

 

I would like to arrange in this sequence: Qty > ProdQty > Brazing > CONTROL BOX > WIRING DIAGRAM

 

But it seems that it will only arrange alphabetically and I am using a direct query for my table which I have unpivot the selection column, so adding an index column doesnt seem working. Please advise.

 

image.png

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi All,

 

Manage to solve this issue by creating a new table with attribute column and forming the relationship between the actual schedule_profile table and new sort table.

 

You may refer to more details here:

https://www.youtube.com/watch?v=4xapOrfLvbg

 

Thank you all.

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , I assuming these are values of a column (Used in column of Matrix)

 

Then you have create a sort column

 

Example

Sort Col =Switch(True() ,

[Col]= "Prod Qty", 1,

//Add other

6 //Default

)

and use that as the sort colum

https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column

Anonymous
Not applicable

Hi @amitchandak ,

 

Thank you for your reply. I have created an index column:

Index = SWITCH(True(),
Schedule_Profile[Attribute] = "Qty", "1",
Schedule_Profile[Attribute] = "ProdQty", "2",
Schedule_Profile[Attribute] = "Brazing", "3",
Schedule_Profile[Attribute] = "COIL", "4",
Schedule_Profile[Attribute] = "COMPRESSOR" , "5",
"6")
 
But when i sort attributes column by the new index column, it shows error:
 
image.png
 
image.png
Please advise. Thank you.
 
Anonymous
Not applicable

Hi All,

 

Manage to solve this issue by creating a new table with attribute column and forming the relationship between the actual schedule_profile table and new sort table.

 

You may refer to more details here:

https://www.youtube.com/watch?v=4xapOrfLvbg

 

Thank you all.

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.