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
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
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!

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.