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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
data_insights
Microsoft Employee
Microsoft Employee

Calculate Percentage and Percentile

I want to calculate percentage of users by each event and then find out what percent of users are in each of the percentile buckets. Is that possible? 

To get percentage, I'm using a measure

Percentage=sum(NumUsers)/calculate(sum(NumUsers),Allselected(Event))

I know, power bi has a formula for percentiles but I cannot use it on a measure and having percentage as a calculated column is not giving the desired results. Thank you for your assistance.

 

EventNumUsersPercentage25th Percentile50th Percentile75th Percentile
Write5050%   
Add Color2525%   
Add Picture1515%   
Add document1010%   
Total100    
4 REPLIES 4
Anonymous
Not applicable

To calculate percentiles one has to have a distribution of real values. That is, you have to have data points that can be ordered. What are your data points? 'Cause I can't see them...

Best
D
Stachu
Community Champion
Community Champion

if I understand correctly you want to create 3 measures: 

25th Percentile 50th Percentile

75th Percentile

correct?
what would be the values for these measures? TRUE/FALSE, % value, something else?



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

That is right. I want the values to be percentiles not true/false

can you share how the expected output would look like?



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.