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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Finding Top or Bottom N Percent using DAX

Hi, 

I am trying to obtain the top n percent of customers such as the example given in 

https://www.burningsuit.co.uk/blog/2019/05/find-top-or-bottom-n-percent-dax/

 

However, I can't do it with my own file with the top/bottom percent. Please kindly help 

 

emerald_silver_1-1610502456676.png

 

 

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , if you are looking for TOPN or bottomN, then you need to have formula like

Top Rank = CALCULATE([Total Trans Amount],TOPN(selectedvalue(TopBottom[TopBottom]),all(Table[Customer]),[Sales],DESC),VALUES(Table[Customer]))

 

Example - https://community.powerbi.com/t5/Community-Blog/Dynamic-TopN-made-easy-with-What-If-Parameter/ba-p/367415

 

If you need Top percent

https://blog.enterprisedna.co/implementing-80-20-logic-in-your-power-bi-analysis/
https://forum.enterprisedna.co/t/testing-the-pareto-principle-80-20-rule-in-power-bi-w-dax/459
https://finance-bi.com/power-bi-pareto-analysis/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.