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
Anonymous
Not applicable

Create a Quintile Column (1,2,3,4,5) and assign the top 20% of rows to Q1, next 20% to Q2, ..

I am very new to excel and Power BI and have tried using the built in percentile.inc, exc functions with no success so far. 

 

This is my thought process:

I have a dataset with a 'Score' (%) column at hand. I sorted this column in descending order and then added another column 'Rank' to calculate the score's rank using the RANKX function. Now I want to create a 'Quintile' column which takes the top 20% of the highest scores and assigns the associated quintile row to 1, next 20% of scores to 2, ... bottom 20% of scores are assigned 5. Is there an easier way to assign these quintiles even when not in descending order, and if so can someone with knowledge on this provide an example of a function that would work for this? Thanks in advance. 

1 ACCEPTED SOLUTION
2 REPLIES 2

Why was this accepted as a solution when it doesn't answer the question?

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