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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. 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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.