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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Sorting a matrix visual using numbers formatted as text

I need to sort this matrix by the column values in numerical order.  In the query, I have added a sorting column, but can't figure out how to sort in the visual.  

Matrix that needs sorting and the query I am usingMatrix that needs sorting and the query I am using

1 ACCEPTED SOLUTION
AnthonyTilley
Solution Sage
Solution Sage

in Desktop Click on your colunm in the fields list and then select Modeling at the top

 

modeling.png

 

in modeling click on sort by colunm and select your chronological colunm

 

chron.png

 

Your field will now sort based on this filed instead

sort.png





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

7 REPLIES 7
AnthonyTilley
Solution Sage
Solution Sage

in Desktop Click on your colunm in the fields list and then select Modeling at the top

 

modeling.png

 

in modeling click on sort by colunm and select your chronological colunm

 

chron.png

 

Your field will now sort based on this filed instead

sort.png





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

Anthony, thank you.   When I do that, i think, I do not see any drop down for sort.  Here is what I am doing:

From the Fields list, I select the column from my table that has the Age Category in it, which is a calculated column based on a range in a separate table

Age Category =
CALCULATE (
    VALUES ( 'Age Category'[Age Category] ),
    FILTER (
        'Age Category',
        'ServiceNow Tasks'[Age of ticket] >= 'Age Category'[Min]
        && 'ServiceNow Tasks'[Age of ticket] < 'Age Category'[Max]
    )
)
When I try the Sort by Column option, I see all the fields. So, I try to add the Age Category from the reference file above, the visualization breaks. I have tried to create a relationship between the reference table and the data tabvle, but returns a ISNUMBER error.
 
I am sure I am making a simple new user mistake, but I am totally lost.
 

In your screen grap you showed a table that had 4 colunms in of Age,Max,min and Chronological

 

When applying the sort click the age colunm in this table and then in modeling>sort by select your chronological colunm. you should not need to refrence another table if you are using the same table as in your screen grab

Can you share a PBIX file or a screen grap of yor relationship model and i can take a look 

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

Dumb question - How do I share the pbix with you?

Hi @Anonymous ,

 

Please upload your files to One Drive and share the link here.

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Anonymous
Not applicable

Yes.  I will steralize my data and share.  Thank you so much for taking your time to help me out!

You can not create a relationship because you are already referancing this field to create the field you would use to join. 

 

instead us a calculated colunm lookup value to bring in your chronological filed to your ServiceNow Tasks

 

Column  = LOOKUPVALUE('Age Category'[Chronoligical],'Age Category'[Age Category],'ServiceNow Tasks'[Age Category])
 
once you have this colunm in your service table then you should be abel to follow the steps in my previous post and sort the age catagory by this colunm.
 
 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.