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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Cevola
Helper I
Helper I

How to write a measure to calculate 5th percentile

Hi,

 

I want to write a measure to calculate 5th percentile of the VALUE column. I am new to Power BI

 

IdValue%GT Value
A12.9938579622.88%
A24.7909807894.61%
A35.2854234745.08%
A49.8459462149.47%
A513.161947212.65%
A63.0617127192.94%
A714.1085351513.56%
A820.4045530519.62%
A98.0820059917.77%
A100.9279738510.89%
A119.3577742689.00%
A1212.0030951411.54%

 

Please help

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Cevola ,

 

According to your description, here are my steps you can follow as a solution.

(1) My test data is the same as yours.

(2) We can create  measures. 

 

Per = PERCENTILE.INC('Table'[Value],0.05) 
Per_V = CALCULATE([Per],ALL('Table'))

 

(3) Then the result is as follows.

vtangjiemsft_0-1690252691554.png

Best Regards,

Neeko Tang

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

View solution in original post

5 REPLIES 5
baghdadi62
Resolver III
Resolver III

Create a measure and use it in a Card visualization in this format, and let me know if there is any issue.

1.JPG

It works in the Card, But can I get a new column PERCENTILE

IdValue%GT ValuePercentile
A12.9938579622.88% 
A24.7909807894.61% 
A35.2854234745.08% 
A49.8459462149.47% 
A513.161947212.65% 
A63.0617127192.94% 
A714.1085351513.56% 
A820.4045530519.62% 
A98.0820059917.77% 
A100.9279738510.89% 
A119.3577742689.00% 
A1212.0030951411.54% 
Anonymous
Not applicable

Hi @Cevola ,

 

According to your description, here are my steps you can follow as a solution.

(1) My test data is the same as yours.

(2) We can create  measures. 

 

Per = PERCENTILE.INC('Table'[Value],0.05) 
Per_V = CALCULATE([Per],ALL('Table'))

 

(3) Then the result is as follows.

vtangjiemsft_0-1690252691554.png

Best Regards,

Neeko Tang

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

baghdadi62
Resolver III
Resolver III

Hi,

PERCENTILE.INC('YourTableName'[VALUE], 0.05)

Hi, I have written this measure but when I pull this measure in the visualisation I get the values same as in the VALUE column

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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