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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Cevola
Frequent Visitor

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

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% 

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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