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

View all the Fabric Data Days sessions on demand. View schedule

Reply
alee5210
Helper II
Helper II

Percentile On X-axis bar chart/histogram

Hi All,

 

I'm looking to create a histogram/bar chart which counts the number of records in that specific percentile. But the issue I'm having is that users can filter the data, the numbers change and the percentile for each record will also change with each filter applied.

For simplicity sake, if I have all years worth of data, but change that to just the current year, the percentiles will change drastically. Data is similar to what you see below but with thousands of records

DatePersonProductSales
01/01/2023Person AProduct A$1,000
02/01/2023Person BProduct B$680
03/01/2023Person AProduct B$350
04/01/2023Person BProduct C$800

 

 

I was after something like the below but in a bar chart.

 

Percentile (bin)Number of records in percentile
<5%3
5-8%4
8-11%6
 
92-95%5
>95%1

 

I have been able to successfully create a measure that allows me to find the percentile and group them into their bins, but measures cannot be made into the X-axis of a chart, so I'm quite stuck.

Is what I'm looking for even possible?

 

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

I solved a similar question in the attached file.  Please adapt this solution to your needs.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi, I can't download your file right now, but can you please explain your thought process behind the solution? How did you come up with this?

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors