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
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
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.