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
MarkEden
Frequent Visitor

Issue with RANKX

Hi All,

 

I'm having an issue with RANKX on something that seems like it should be straight forward. I've tried various solutions found in forums but still can't resolve it.

 

I am creating a rank by insurer based on total premium in last 12 months, I have a rankx formula that works well in a table, however the total is incorrect. I need to add this total into a card as well so need to understand why.

 

The below table shows the difference for Insurer A. The rank 3 is correct for this insurer, however in the total it shows as 4. 4 is also the result when visualised in a card. I believe it is to do with the context of the total premium but can't figure out how to modify the RANKX measure to match the context of the table. 

 

Here is the current measure:

 

Insurer Rank Overall = 
    RANKX ( 
    ALL('Insurer Groups'[Insurer Group Report Name]),
    [LTM Premium])

 

And hear is the result

MarkEden_0-1677824027101.png

Any help is appreciated.

1 ACCEPTED SOLUTION
rajulshah
Resident Rockstar
Resident Rockstar

Hello @MarkEden ,

 

If you want the sum of the rank, please plot the following measure:

Total Rank =
SUMX(VALUES('Insurer Groups'[Insurer Group Report Name]),[Insurer Rank Overall])

Let me know if this didn't work.

View solution in original post

2 REPLIES 2
rajulshah
Resident Rockstar
Resident Rockstar

Hello @MarkEden ,

 

If you want the sum of the rank, please plot the following measure:

Total Rank =
SUMX(VALUES('Insurer Groups'[Insurer Group Report Name]),[Insurer Rank Overall])

Let me know if this didn't work.

Works perfectly. Thanks for your help!

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.

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

60 days of Data Days Carousel

Data Days 2026

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

Top Solution Authors