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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register 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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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