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
Anonymous
Not applicable

Quartile split based on segmented data

Hi Power BI community,

I am working with some data that has been simplified in the below table.

 

What I am trying to do is split the data into quartiles based on a selected product. So if Product 2 is selected in a slicer/dropdown, what I would like is the sales data for that product split into 4 quartiles i.e. quartile 1 is the best performing countries in terms of Avg Profit (per unit), and quartile 4 the worst performing countries.. It's possible I may have certain products with sales in less than 4 countries, in which case they can go into the relevant quartiles in order from 1 to 2 to 3.

I would like to use the quartiles as visual filters after.

I've read several threads but can't figure out how I might do this, so any guidance would be appreciated.

ProductCountryAvg Profit (per unit)
Product 1Country 1xyz
Product 1Country 2xyz
Product 1Country 3xyz
Product 1Country 4xyz
Product 1Country Nxyz
Product 2Country 1xyz
Product 2Country 3xyz
Product 2Country 5xyz
Product 2Country 9xyz
Product 2Country Nxyz
Product 5Country 3xyz
Product 5Country 7xyz
Product 5Country 8xyz
Product 5Country 11xyz
Product 5Country Nxyz
Product NCountry Nxyz
2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can refer to this thread:https://community.powerbi.com/t5/Desktop/quartile-ranking/m-p/560850 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Greg_Deckler
Community Champion
Community Champion

This sounds like Dynamic ABC classification although it sounds like you want dynamic ABCD classification:

https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-ABC-Classification/m-p/479146#M180



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.