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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
jrsdata
Regular Visitor

Creating Dynamic Ranking Tier Measure

Hi All-

 

Relatively new to Power BI.  I am looking to add a dynamic measure which would create a dynamic tiered ranking.  There should be 5 tiers.  For starters, each could comprise of 20%.  However, that % might change.  The Tier level will be based on the 'Policy Count' and will be aggregated by 'County'.  Tier 1 for example, will equate to all Counties that comprise of 20% of the total 'Policy Count'.

 

I believe i have to use a combination of EARLIER,RANKX, etc but not sure how to put together.

 

Few notes about the data.  Policy count is a measure created on a fact table field (Policy ID).  I will be using a filter on 'Product Type' to filter out type '2'.

 

Sample below:

CountyPolicy CountProduct TypeTier#
Los Angeles County571 
Cook County501 
Harris County601 
Dallas County1001 
Clark County121 
Wayne County301 
Cuyahoga County401 
San Diego County211 
Kings County101 
Riverside County51 
Maricopa County41 
Tarrant County241 
Philadelphia County551 
Maricopa County202 
Tarrant County42 
Philadelphia County432 
    

 

Appreciate all help and guidance!

Jared

 
 

  

1 ACCEPTED SOLUTION

Hey @jrsdata ,

 

i forgot the 1st CALCULATE ...

this measure

Measure = 
DIVIDE(
    CALCULATE(SUM('Table'[Policy Count]))
    , CALCULATE(SUM('Table'[Policy Count]) , ALL('Table'[County]))
)

allows to create this little report:

image.png

Regards,

Tom

 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

3 REPLIES 3
TomMartens
Super User
Super User

Hey @jrsdata ,

 

you can create a measure that calculates the contribution of a county like so:

 

share of county = 
divide(
sum('<tablename>'[Policy Count])
, calculate(sum('<tablename>'[Policy Count]) , all('<tablename>'[Policy Count]))
)

 

Then you can this measure to retrieve the rank from a table, that you have to add to your data model and that contains the ranks´.

 

These articles provide guidance how to tackle this kind of segmentation tasks:

Hopefully, this is what you are looking for.

 

Regards,

Tom

 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Hi Tom-

 

Tried implementing part 1 of your solution but seeing 1.00 across the board for 'share of county' measure.

Hey @jrsdata ,

 

i forgot the 1st CALCULATE ...

this measure

Measure = 
DIVIDE(
    CALCULATE(SUM('Table'[Policy Count]))
    , CALCULATE(SUM('Table'[Policy Count]) , ALL('Table'[County]))
)

allows to create this little report:

image.png

Regards,

Tom

 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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