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! Learn more

Reply
DouglasWatkins
Frequent Visitor

How to sort figures in a matrix.

I need to have a matrix show the latest/matching figures by month for a graph above it.  The normal sorting methods don't seem to work for me.

Thank you in advance.

DouglasWatkins_0-1681167211990.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @DouglasWatkins ,

I created some data:

vyangliumsft_0-1681263591266.png

Is the column you want to sort in the matrix a text type, according to the Power BI design, if the column is a text type, it will be sorted alphabetically

If you want to sort based on numeric priority, you can do the conversion

 

Here are the steps you can follow:

1. Create calculated column.

Group1_number =
var _len=LEN('Table'[Group1])
var _len1=FIND("%",'Table'[Group1])
return
VALUE(
LEFT(
    'Table'[Group1],_len-1)) / 100
Select [Group1_number] – Column tools -- % -- set 0

vyangliumsft_1-1681263591268.png

In Visual, press the following placement:

vyangliumsft_2-1681263628090.png

2. Result:

vyangliumsft_3-1681263628092.png

 

Best Regards,

Liu Yang

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi  @DouglasWatkins ,

I created some data:

vyangliumsft_0-1681263591266.png

Is the column you want to sort in the matrix a text type, according to the Power BI design, if the column is a text type, it will be sorted alphabetically

If you want to sort based on numeric priority, you can do the conversion

 

Here are the steps you can follow:

1. Create calculated column.

Group1_number =
var _len=LEN('Table'[Group1])
var _len1=FIND("%",'Table'[Group1])
return
VALUE(
LEFT(
    'Table'[Group1],_len-1)) / 100
Select [Group1_number] – Column tools -- % -- set 0

vyangliumsft_1-1681263591268.png

In Visual, press the following placement:

vyangliumsft_2-1681263628090.png

2. Result:

vyangliumsft_3-1681263628092.png

 

Best Regards,

Liu Yang

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

DouglasWatkins
Frequent Visitor

Sorry, I don't see the attachment button.  Otherwise I would attach my file.

Going to the dataview and sorting a column by an index column I have doesn't seem to work.  I was wondering if I could add a reverse index column.

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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