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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
owenmillerUK
New Member

Top 3% of scores

Hello,
I have a table of people, which includes a "score" that exists as a measure. I have been asked to show only the top 3% of people by score, and only show these individuals in the table. 
I am aware of the "Top N" filter that can be placed upon the table, but unsure how to get this working with the top % rather than top number of people?
Thanks in advance!

4 REPLIES 4
owenmillerUK
New Member

Thanks @ppm1 - I've just tried that and in a card visual it returns a number, which I believe is the number of people who are in that top 3%. However, I also want to filter my table down so that only the individuals who are in that top 3% are shown. When I try and add the measure into the table it fails to display. How could I achieve that?

@owenmillerUK pls provide sample data and expected output

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
ppm1
Solution Sage
Solution Sage

Here's an example that shows one way to do it. Works in a visual with just the products. You could adapt for students.

Top 3% Products =
VAR pct3 =
    ROUNDUP ( COUNTROWS ( ALLSELECTED ( Products[Product] ) ) * 0.03, 0 )
VAR top3pct =
    TOPN ( pct3, ALLSELECTED ( Products[Product] ), [Total Sales], DESC )
RETURN
    CALCULATE ( [Total Sales], KEEPFILTERS ( top3pct ) )

 

Pat

Microsoft Employee

Can you explain your model further? In my case, I have a Product dimension and a Sales fact table (used in the Total Sales measure). When I create a table visual with the Product column (from the Product table), I get the following with that measure. All the products not in the top 3% return blank and are filtered out by the visual.

 

ppm1_0-1676396944668.png

 

Pat

Microsoft Employee

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.