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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.