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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
data_insights
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors