cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Helper I

## Matrix - Sorting

Hi ,

In below image matrix grouping by rows and then sort by value. But it is not useful for my client.  8 value should be after the 16 but it is before in current logic. Can you please help me to fix it?

Correct order should be 17 - 16 - 16 - 8

1 ACCEPTED SOLUTION
Community Champion

@aslan wrote:

Correct order should be 17 - 16 - 16 - 8

If you want this order you need to swap the order in the Rows Field of you Matrix.

You currenty have cat/mod - you need mod/cat - but then I don't get how 6+16=16 on the 3rd line in your picture below the 8?

And if you want to see what sorting at each level in Excel is - here's a picture... (and this is obviously a very simple example)

Good Luck to you!

4 REPLIES 4
Community Champion

@aslan wrote:

Correct order should be 17 - 16 - 16 - 8

If you want this order you need to swap the order in the Rows Field of you Matrix.

You currenty have cat/mod - you need mod/cat - but then I don't get how 6+16=16 on the 3rd line in your picture below the 8?

And if you want to see what sorting at each level in Excel is - here's a picture... (and this is obviously a very simple example)

Good Luck to you!

The Matrix visual lacks functionality.  There are lots of ideas on the community site.  Below are the front runners.  Please vote these up!

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/17401381-conditional-formatting-f...

Community Champion

In response to an email I had received to take a survey on how to improve to Matrix/Table visualizations

One of the things I suggested to them in the survey was improved sorting options for the Matrix

I later posted that as a comment here... which you can see below (from October 27, 2016)

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/15844186-pivot-tables-and-breakdo...

Please consider adding Sorting Options in the Matrix as those available for the Pivot Table which allows for sorting at EACH level.
For example in Excel if you have this Pivot Table setup:
Rows: Year, Type, Company and Location
Columns: Month
Values: Total Revenue (Measure)
In a Pivot Table you can sort at each level! (without disrupting the sorting at the other levels)
So you can sort your Year descending by Year, Type ascending by Type, Company also ascending by Company and lastly Location descending by Total Revenue. So in Excel you will always be looking at the current Year (on top), followed by Type and Company (A to Z) and only your Locations will be sorted based on Total Revenue best to worst. And by the way all previous years are collapsed only showing annual totals but you can always open a certain year and find what you are looking for. Now if you want to you can go and sort at the Company level but this time descending by Total Revenue (instead of by Company A to Z). Again Year and Type will not be disturbed you will get your current Year (on top) followed by Type (A to Z) and then the Companies will be sorted best to worst based on Total Revenue and the Locations for each Company will also be sorted best to worst based on Total Revenue. None of this is currently possible in the Matrix! Thanks!

EDIT: I didn't mention the Month Column but of course you can sort it also to show the Months either Jan to Dec or Dec to Jan!

For example in beginning of the Year you can sort Jan to Dec but closer to the end you can reverse the order Dec to Jan

so you see the most recent data first (meaning on the left side in the table).

Helper I

I really don't understand in your comment what you explain? Is ıt possible in PowerBI or not?

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - June 2024

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

#### New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors