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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
saramark
Frequent Visitor

Percentile

Hi, 

how can I write the same formula in Power Bi in order to obtain the same result as shown below (integers between 1 and 5)?

 

q3.PNG

 

 

2 REPLIES 2
amitchandak
Super User
Super User

@saramark ,

new column =

switch( True()
([A]) < PERCENTILE.INC([A], 0.2) ,1,
([A]) < PERCENTILE.INC([A], 0.4) ,2,
([A]) < PERCENTILE.INC([A], 0.6) ,3,
([A]) < PERCENTILE.INC([A], 0.8) ,4,
5)

 

new measure =

switch( True()
max([A]) < PERCENTILE.INC([A], 0.2) ,1,
max([A]) < PERCENTILE.INC([A], 0.4) ,2,
max([A]) < PERCENTILE.INC([A], 0.6) ,3,
max([A]) < PERCENTILE.INC([A], 0.8) ,4,
5)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak ,

 

it seems thee is something wrong in the syntax...

 

([A]) < PERCENTILE.INC([A], 0.2) ,1,

 

q4.PNG

 

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.