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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Sirhawk3017
Helper II
Helper II

Ranking Measure Help

Hi All,

 

Really new to Power Bi. Odd behavior on the ranking formula. Ranking works as I want for YTD until I add the column License Status. When I do that all of the different statuses get their own ranking but I want it as just a ranking on overall YTD sales.

 

 

FM Territory Rank = RANKX(ALLSELECTED(FM_INFO[Agreement ID]),[FM Sales YTD])

 

Sirhawk3017_1-1731965688199.png

 

 

3 ACCEPTED SOLUTIONS
lbendlin
Super User
Super User

You will need to provide the Value parameter for RANKX, and compute that with REMOVEFILTERS.

View solution in original post

Anonymous
Not applicable

Hi @Sirhawk3017 ,

Base on your description, it seems like the ranking value not correct when adding the column [License Status]. Please update the formula of measure [FM Territory Rank] as below and check if it can return the expected result...

FM Territory Rank = 
RANKX(
    ALL(FM_INFO[Agreement ID]),
    [FM Sales YTD],
    ,
    DESC,
    DENSE
)

If the above one can't help you get the expected result, please provide some raw data in your tables(exclude sensitive data) with Text format and your expected result with backend logic and special examples. It would be helpful to find out the solution. You can refer the following link to share the required info:

How to provide sample data in the Power BI Forum

 

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

View solution in original post

Thank you so much this did the trick!

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Sirhawk3017 ,

Base on your description, it seems like the ranking value not correct when adding the column [License Status]. Please update the formula of measure [FM Territory Rank] as below and check if it can return the expected result...

FM Territory Rank = 
RANKX(
    ALL(FM_INFO[Agreement ID]),
    [FM Sales YTD],
    ,
    DESC,
    DENSE
)

If the above one can't help you get the expected result, please provide some raw data in your tables(exclude sensitive data) with Text format and your expected result with backend logic and special examples. It would be helpful to find out the solution. You can refer the following link to share the required info:

How to provide sample data in the Power BI Forum

 

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

Thank you so much this did the trick!

lbendlin
Super User
Super User

You will need to provide the Value parameter for RANKX, and compute that with REMOVEFILTERS.

what would that look like if I were to make it into a measure?

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.