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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
v-yangliu-msft
Community Support
Community Support

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
v-yangliu-msft
Community Support
Community Support

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.