Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
DavidPorTodos
Advocate I
Advocate I

Sort Matrix by multiple rows

Hi, I am trying to sort my matrix by multiple rows. I was able to do it a while ago but unfortunately I don't remember how I achieved it and now after trying and trying I convinced myself to ask the community
My status quo

DavidPorTodos_2-1705679220304.png

 

what I want to achieve

DavidPorTodos_1-1705679182703.png

 

Thank you for your help

3 REPLIES 3
DallasBaba
Skilled Sharer
Skilled Sharer

@DavidPorTodos You can Sort by multiple Columns in a Table by Simply HOLDING on the "shift" Button while clicking asc or desc on other columns.

 

But The logic is different with a Matrix table. 

Looking at your images, you want to sort by Q1, Q2, Q3, and Q4 per year.

 You can archive this by expanding the ROWS, sorting on the quartiles, and then collapsing all the fields once done.

 

See the attached video. 

 

I hope this meets your needs. 

 

Note: You can also use DAX to make a logic sorting arrangement.  I would be happy to help, if you can send a bpix with sample data - it does not have to be the data you are working on, but it is closely related.

 

If this post helps, please consider Accepting it as the solution to help others find it more quickly.  

 
Best Regards,
Dallas.
Thanks
Dallas
DavidPorTodos
Advocate I
Advocate I

As you see below from pict.2 I was able to sort the matrix by 3 different dimesnions. What I am currantly not able to replicate.

Pict.1

DavidPorTodos_1-1705914817870.png

Pict2

DavidPorTodos_2-1705914852241.png

 

DallasBaba
Skilled Sharer
Skilled Sharer

@DavidPorTodos Can you send the pbix file with a sample dataset OR a clear picture on the Martix table and how you want the values to be sorted. 

Thanks
Dallas

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors