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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
paulmacky
Regular Visitor

Rank ASC

Hi! I want to make a ranking in ASC order and that when filtering by League, the ranking is updated with the filters.

When I don't put ASC in the code, when filtering if the Rnaking comes out ordered:

 

paulmacky_4-1666858231165.png

 

But when adding to the ASC code, so that I order it in ascending order, the ranking filtered by league is not left, but when filtering the ranking number appears globally. How can I do, so that when filtering by League, the ranking appears ordered 1,2,3,4,5... as it appears to me when I do not put ASC?

paulmacky_5-1666858359152.png

Thnx!

 

4 REPLIES 4
Anonymous
Not applicable

Hi @paulmacky ,

I have created a simiple sample, please refer to it to see if it helps you.

Create a measure.

Measure2 =
RANKX (
    FILTER (
        ALL ( 'Table' ),
        'Table'[Min/centros] >= SELECTEDVALUE ( 'Table'[Min/centros] )
    ),
    CALCULATE ( SUM ( [Min/centros] ) ),
    ,
    DESC
)

Or create a column.

Column =
RANKX (
    FILTER ( 'Table', 'Table'[Min/centros] >= EARLIER ( 'Table'[Min/centros] ) ),
    [Min/centros],
    ,
    DESC
)

 

vpollymsft_0-1666938415221.png

If I have misunderstood your meaning, please provide more details with your desired output and pbix file without privacy information .

 

Best Regards

Community Support Team _ Polly

 

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

Hi @Anonymous ! Thanks for your reply, but I still can't solve the problem.

paulmacky_0-1666945811471.png

 

I need this measure that I have created, when filtering it in "Liga" by "1ª Federación", "Argentina" or "Segunda División" to appear like this:

paulmacky_1-1666946077638.png

Because in the created measure, if I don't put "ASC" it does the filtering, but when I put "ASC", since I want that column to have a ranking in ascending order, it doesn't do the ranking for me when filtering.

paulmacky_3-1666946910186.png

 

Without "ASC", the ranking with the filter is ok, but it is in descending order, and I need the same but in ascending order. That is, by ordering the "Min/Centros al área" column from lowest value to highest value with the filter on "Liga" of "Segunda División", I want the "ranking" to appear the same as in the photo just above.

 

Thanx!!

Anonymous
Not applicable

Hi @paulmacky ,

Please provide more details with your desired output and pbix file without privacy information .

 

Best Regards

Community Support Team _ Polly

 

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

How can I share the pbix file here? Since I try to attach it to the message but this appears:

paulmacky_0-1666948624099.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.