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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Bene1995
New Member

RankX also includes results that are not filtered

Hello,

 

i am working on a Formula 1 PBI and are trying to get the total rank by each season.

For that purpose i used the following measure: 

DS Rank = RANKX(ALL(drivers),MAXX(RELATEDTABLE(driver_standings__),driver_standings__[points]))

 

While i get results for the years driven, which are mostly correct, it also ranks years not driven. What am I doing wrong?

Bene1995_1-1659988984670.png

 

 

1 REPLY 1
hircinelol
Regular Visitor

Hi @Bene1995 ,

 

You are using ALL() function, that will ignore the filters in the formula.

Try removing ALL() or using ALLSELECTED().

It it still doesn't work, please consider to use silcer and add the filter conditions to formula instead.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors