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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

bottom 10%

Hello Community,

 

I have a very simple dataset showing a dealer's customer satisfaction score %.  Once the data is imported into PowerBI, how can I create a new column that will auto-populate "yes" if the dealer's score is in the bottom 10% otherwise "no"??  Thanks in advance!!

 

 

DealerCustomer Satisfaction
Dealer 150.6%
Dealer 272.6%
Dealer 384.9%
Dealer 474.4%
Dealer 550.8%
Dealer 694.5%
Dealer 784.9%
Dealer 877.6%
Dealer 994.8%
Dealer 1092.7%
Dealer 1164.5%
Dealer 1243.8%
Dealer 1333.8%
Dealer 1426.7%
Dealer 1543.9%
Dealer 1648.5%
Dealer 1723.8%
Dealer 1886.4%
Dealer 1994.2%
Dealer 2098.1%
1 ACCEPTED SOLUTION
aj1973
Community Champion
Community Champion

Hi @Anonymous 

aj1973_0-1610064644442.png

Here is the formula, change the rate as you wish

Yes or No =
var DealerScore = Sheet1[Customer Satisfaction]
Return
IF( DealerScore < 0.5 , "Yes", "No")
 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

How would you calculate Top/Bottom on this dataset?  Please explain and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
CNENFRNL
Community Champion
Community Champion

@Anonymous , you might want to try following formulae in calculated columns

 

Bottom 10% = 
VAR __n = COUNTROWS ( 'Customer Satisfaction Score' ) * .1
RETURN
    IF (
        COUNTROWS (
            FILTER (
                'Customer Satisfaction Score',
                'Customer Satisfaction Score'[Customer Satisfaction]
                    < EARLIER ( 'Customer Satisfaction Score'[Customer Satisfaction] )
            )
        ) < __n,
        "Yes",
        "No"
    )

 

or

 

Bottom 10% Rankx = 
VAR __n = COUNTROWS ( 'Customer Satisfaction Score' ) * .1
VAR __rank =
    RANKX (
        'Customer Satisfaction Score',
        'Customer Satisfaction Score'[Customer Satisfaction],
        ,
        ASC
    )
RETURN
    IF ( __rank <= __n, "Yes", "No" )

 

 

Screenshot 2021-01-08 014011.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

aj1973
Community Champion
Community Champion

Hi @Anonymous 

aj1973_0-1610064644442.png

Here is the formula, change the rate as you wish

Yes or No =
var DealerScore = Sheet1[Customer Satisfaction]
Return
IF( DealerScore < 0.5 , "Yes", "No")
 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.