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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
GKJARC
Resolver I
Resolver I

Sort matrix table

Hi everyone,

 

I have a matrix table with a 2-level hierarchy (so two columns in the 'Rows' section): Customer name and Date.
Customer name is sorted alphabetically ascending.
Date I need sorted descending so that the latest date appears at the top.

So the desired sort order would be like this:

Customer name, Date
- Customer A
           01-03-2024
           01-12-2023
           01-06-2023
           01-10-2022
+ Customer B
+ Customer C

 

How can this be achieved?

Any help would be greatly appreciated.

Thanks!

2 REPLIES 2
GKJARC
Resolver I
Resolver I

Thanks @samratpbi for your reply.
I'm affraid my post lacked the important detail that the hierarchy can have up to 4 levels and only the first level should be sorted Ascencing, the others should sort Descending so the latest on top like this:

- Customer A
     - A3
          01-03-2024
          01-12-2023
          01-06-2023
          01-10-2022
     + A2
     - A1
          01-06-2019
          01-04-2019
          01-03-2019
          01-10-2018
+ Customer B
+ Customer C
samratpbi
Super User
Super User

Hi, I have created 1 sample table like below:

samratpbi_0-1710673011498.png

Then after putting values in a matrix visual, applied this sort option:

samratpbi_2-1710673194681.png

As you may see, Customers are asc and dates under a customer are desc.

If this resolves your proble, then please mark it as solution, Thanks!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors