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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Create calculated column to make special case at the bottom while other ranking by themselves

I have tried below to create calculated column in order to rank end of my contract=15(A14) and Personal reasons=16(A15) for these 2 special case, while others(A1,...,A13,A16) should be ranked among themselves according to their current % of workers. The final target is to make the table visuals putting  A14 and A15 at the bottom(RANK=15,16, while others ranked among ranking 1-14(even % is lower than personal reasons/end of my contract). I think i must use calculated column, as i would to finally use the conditional formatting for the field value by making measure based on the ranking i am asking.  Note that % of workers include both % of past and current %.
 
Rank(current) = IF(Q25_TOP5[Current/last]="Current Survey",IF(Q25_TOP5[Answer text]="End of my contract",15, IF(Q25_TOP5[Answer text]="Personal reasons", 16, RANKX(FILTER(ALL(Q25_TOP5[Merged]),Q25_TOP5[Answer text]<>"End of my contract" && Q25_TOP5[Answer text]<>"Peasonal reasons"), [% of workers],,DESC))))
 
 
 sample data:
Q25_TOP5
A123A120%9/9/2022current
A123A230%9/9/2022current
A123A310%9/9/2022current
A123A45%9/9/2022current
A123A56%9/9/2022current
A123A652%9/9/2022current
A123A71%9/9/2022current
A123A83%9/9/2022current
A123Other52%9/9/2022current
A123No41%9/9/2022current
A121A120%3/9/2022last
A121A230%3/9/2022last
A121A310%3/9/2022last
A121A45%3/9/2022last
A121A56%3/9/2022last
A121A652%3/9/2022last
A121A71%3/9/2022last
A121A83%3/9/2022last
A121Other52%3/9/2022last
A121No41%3/9/2022last
A119A120%1/9/2022-
A119A230%1/9/2022-
A119A310%1/9/2022-
A119A45%1/9/2022-
A119A56%1/9/2022-
A119A652%1/9/2022-
A119A71%1/9/2022-
A119A83%1/9/2022-
A119Other52%1/9/2022-
A119No41%1/9/2022-

 

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

 

According to your sample, I couldn't find "Current Survey"/"End of my contract"/"Personal reasons" and so on. Please share a sample file with me and show me a screenshot with the result you want. This will make it easier to me to find the solution.

 

Best Regards,
Rico Zhou

 

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

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors
Top Kudoed Authors