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
ConnieMaldonado
Responsive Resident
Responsive Resident

Sort Matrix Visual by a field on the table

I have a matrix visual which displays various sales data, counts, average sales, etc.  I created mock data to illustrate the issue in the following pbix:

 

https://drive.google.com/file/d/1QR9RoQpmTcmxBnufcUHsqzWp75Qh6amO/view?usp=share_link 

 

On the table I added a "Sort" column to sort the items, and I sorted the table based on that column.

 

How do I sort the matrix visual without adding the Sort field to the visual?

 

Here's what I get when I create the matrix:

 

ConnieMaldonado_0-1667328778956.png

 

Here's what I want (expected results) without adding the "Sort" field to the matrix visual:

ConnieMaldonado_3-1667328886391.png

 

Mock Data

Included in pbix

 

Any help would be greatly appreciated.  Thanks!!

 

 

 

1 ACCEPTED SOLUTION
Mikelytics
Resident Rockstar
Resident Rockstar

Hi @ConnieMaldonado ,

 

I might have a small trick to achieve your call. 

 

Please let the sort column as it is in your picture in the report. We will let it in the matrix but hide it so nobody will see it. For that please do the following.

 

Default behaviour when you want to hide a column (text wrap in column headers and values)

Mikelytics_6-1667331062213.png

 

Step 1) Deactivate word wrap for column headers and values

Mikelytics_7-1667331134461.png

 

2) Toggle the column and make it so small that it is gone. 🙂

Mikelytics_8-1667331171557.png

 

and further ...

Mikelytics_9-1667331189955.png

and gone ...

Mikelytics_10-1667331206316.png

I know it is a workaround but it maybe it helps 🙂

 

Best regards

Michael

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your kudos.

 

 

 

 

 

 

 

 

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!

View solution in original post

3 REPLIES 3
Mikelytics
Resident Rockstar
Resident Rockstar

Awesome! Thank you for the feedback! Best regards, Michael

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!
Mikelytics
Resident Rockstar
Resident Rockstar

Hi @ConnieMaldonado ,

 

I might have a small trick to achieve your call. 

 

Please let the sort column as it is in your picture in the report. We will let it in the matrix but hide it so nobody will see it. For that please do the following.

 

Default behaviour when you want to hide a column (text wrap in column headers and values)

Mikelytics_6-1667331062213.png

 

Step 1) Deactivate word wrap for column headers and values

Mikelytics_7-1667331134461.png

 

2) Toggle the column and make it so small that it is gone. 🙂

Mikelytics_8-1667331171557.png

 

and further ...

Mikelytics_9-1667331189955.png

and gone ...

Mikelytics_10-1667331206316.png

I know it is a workaround but it maybe it helps 🙂

 

Best regards

Michael

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your kudos.

 

 

 

 

 

 

 

 

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!

That will work!  Thank you.

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.