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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
agraffeo21
Helper I
Helper I

Ranking Subjects

I have ranked my countries by top 5, but they are sorted alphabetically... I would like them to be sorted by their respective rank.

 

Same for Month -- the months are alphabetically ordered, but I would like them to be ordered chronologically. Would like some advice on this please.

 

Thanks

.job sentiment visual 2.png

 

 

4 REPLIES 4
jahida
Impactful Individual
Impactful Individual

Go to Modeling -> Sort By Column and pick the column you wish to sort by. Eg. Select the Country column, go to Modeling, Sort By Column, select Rank of countries by index.

 

This will require you making a numeric month column MonthNum = MONTH(Table[Month]) if you don't already have an equivalent.

 

Hope that helps!

 @jahida thank you -- i think that is a start.

 

however the rankings are not static -- so if I change the date, the rank would also have to change. it does not sound like it would work if the column sorted them by month.

 

 

jahida
Impactful Individual
Impactful Individual

To clarify, is your rank currently a measure or a column? If a measure, the only way I am aware of to sort the table properly is sorting the visual manually ie. clicking on the header of the column you want to sort by.

 

EDIT: What do you mean by "if the column sorted them by month"? Which column (or both..?) are you worried about the method I mentioned above not working for?

agraffeo21
Helper I
Helper I

I have ranked my countries by top 5, but they are sorted alphabetically... I would like them to be sorted by their respective rank.

 

Same for Month -- the months are alphabetically ordered, but I would like them to be ordered chronologically. Would like some advice on this please.

 

Thanks

.job sentiment visual 2.png

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.