Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Sort Matrix visual based on specific criteria

Hi there,

I created a matrix to summarize the slow moving inventory, historical sales and current inventory. In order to make it more "dynamic" (hide/show columns based on the applied slicers), I categorized the data into Elements and Sub-Elements.  It went fine until I wanted to sort it by the total slow moving (inventory with more than 6 months aging, which is the addition of two subcategories: 6-11 months plus 12 or more months). 

I tried adding the rank to the matrix rows but it does not accept measures.  I can not use rank in Matrix' "sort by" nor in the column's "sort by". I tired to add the rank field to the values section but I can not hide it.

Any clue?


Annotation 2020-05-05 200618.png


Community Support
Community Support

@Artie ,


Have you added the measure to the value field? You can click ellipse on the right-top hand of the matrix visual and then select sort by Measure.



Community Support Team _ Jimmy Tao

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

Hi @v-yuta-msft ,

Yes, I tried, but it does not sort the information from the largest to lowest slow moving since the same measure cumputes the addition of the slow moving, the inventory and sales history.


Super User IV
Super User IV


Prefer to Create a common table element and subelement and have the sort order defined for them, it may be based or rank or logic. Mark sort column for element and sub-element and then use in Matrix

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!

Post Prodigy
Post Prodigy

@ArtieYou should be able to sort by a measure, if you can, please post some screenshots from your actual implementation and the measures you are using.

Helpful resources



We are excited to announce the Power BI Super Users!

Wave Release 2

Check out the updates in Power BI.

Overview of Power BI 2020 release wave 2!

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!


The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors