cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper II
Helper II

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

Accepted Solutions

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

@jenas6423 , 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



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

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.
 

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

Helpful resources

Announcements
November Update

Check it Out!

Click here to read more about the November 2020 Updates!

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

secondImage

Power Platform October Community Highlights

Check out the top community contributors across all of the communities

secondImage

Create an end-to-end data and analytics solution

Learn how Power BI works with the latest Azure data and analytics innovations at the digital event with Microsoft CEO Satya Nadella.

Top Solution Authors
Top Kudoed Authors