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
Dharris2211
Regular Visitor

Percentile Column based on range of total scores

Hi - 

 

I'm looking to create a percentile column that will populate based on totals in a scoring column. Right now, I'm manually calculating the percentile by using the percentile analytic feature and then create a conditional formatted column based on the 20th, 30th and 50th percentiles that is calculated. The issue is this is now becoming unsustainable as more data is uploaded into the data source, regularly. Ideally, I'd like to identify a way to have this percentile column calculate automatically based on the score column and then maybe create a conditional column that could dynamically update any percentile that fall under the 20th, 30th and 50th percentile. Any feedback is greatly appreciated. 

 

Thanks,

Donovan

1 ACCEPTED SOLUTION
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Dharris2211,

 

Ideally, I'd like to identify a way to have this percentile column calculate automatically based on the score column and then maybe create a conditional column that could dynamically update any percentile that fall under the 20th, 30th and 50th percentile. Any feedback is greatly appreciated. 


 

You may create measures to get what you want. You could calculate the Percentage by Divide and show with %.

 

Percentile = DIVIDE(data 1,Total score)

The Condition Column you could refer to the formula below. You could change the 'Reve' to your table name.

 

Confition Column = 
IF (
    AND ('Reve'[Percentile] <= 0.2, 'Reve'[Percentile] > 0 ),
    "<20%",
    IF (
        AND ( 'Reve'[Percentile] > 0.2, 'Reve'[Percentile] <= 0.3 ),
        "<30%",
        IF ( AND ( 'Reve'[Percentile]> 0.3, 'Reve'[Percentile] <= 0.5 ), "<50%", BLANK () )
    )
)

And the output is below.

 

Capt8ure.PNG

 

If you need additional help please share some data sample and expected output.You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading.)

 

In addition, you could have a reference of this test pbix file.

 

For further, you could have a good look at Calculated column and Measure.

 

Best regards,

Cherry

Community Support Team _ Cherry Gao
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

1 REPLY 1
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Dharris2211,

 

Ideally, I'd like to identify a way to have this percentile column calculate automatically based on the score column and then maybe create a conditional column that could dynamically update any percentile that fall under the 20th, 30th and 50th percentile. Any feedback is greatly appreciated. 


 

You may create measures to get what you want. You could calculate the Percentage by Divide and show with %.

 

Percentile = DIVIDE(data 1,Total score)

The Condition Column you could refer to the formula below. You could change the 'Reve' to your table name.

 

Confition Column = 
IF (
    AND ('Reve'[Percentile] <= 0.2, 'Reve'[Percentile] > 0 ),
    "<20%",
    IF (
        AND ( 'Reve'[Percentile] > 0.2, 'Reve'[Percentile] <= 0.3 ),
        "<30%",
        IF ( AND ( 'Reve'[Percentile]> 0.3, 'Reve'[Percentile] <= 0.5 ), "<50%", BLANK () )
    )
)

And the output is below.

 

Capt8ure.PNG

 

If you need additional help please share some data sample and expected output.You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading.)

 

In addition, you could have a reference of this test pbix file.

 

For further, you could have a good look at Calculated column and Measure.

 

Best regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.