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

Categorizing a measure column

Hi,

 

I have 2 columns. Employees and Total Guests to each employees.

See below.

EmployeeTotal Guests
abc199
abc291
abc373
abc426
abc559
abc649
abc739
abc817
abc932
abc1068
abc1193
abc1263
abc1366
abc1476
abc1566
abc1647
abc1728

 

I want to color code on Total guests such that Top 1% should be in blue color.

Top33 - Green

Middle33- Yellow

Bottom33- Red

 

 

Please let me know the dax calculation that can be later used in conditional formatting.

 

 

On a sideline, please also let me know how can I make calculated columns in azure analytics server as Power BI doesnt allow me to create calculated columns.

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

Is this what you want? 

back.PNG

If it is, try this:

1. Create measures.

Rank =
RANKX (
    ALLSELECTED ( 'Table' ),
    CALCULATE ( MAX ( 'Table'[Total Guests] ) ),
    ,
    DESC,
    DENSE
)
Percent = DIVIDE ( [Rank], MAXX ( ALL ( 'Table' ), [Rank] ) )

2. Set conditional formating.

condition.PNGback2.PNG

 

Best Regards,

Icey

 

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

2 REPLIES 2
Icey
Community Support
Community Support

Hi @Anonymous ,

Is this what you want? 

back.PNG

If it is, try this:

1. Create measures.

Rank =
RANKX (
    ALLSELECTED ( 'Table' ),
    CALCULATE ( MAX ( 'Table'[Total Guests] ) ),
    ,
    DESC,
    DENSE
)
Percent = DIVIDE ( [Rank], MAXX ( ALL ( 'Table' ), [Rank] ) )

2. Set conditional formating.

condition.PNGback2.PNG

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

Check

https://community.powerbi.com/t5/Desktop/Calculating-the-percentile-for-a-set-of-data/td-p/250581

 

After getting percentile as column you should able to color

https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...

 

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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors