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

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors