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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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