web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Up Program - Visualize data with Power BI
Suggested answer

How to create calculated RANK column in power bi

(3) ShareShare
ReportReport
Posted on by 3
Hi
I have a list of suppliers where each supplier has a group of employee job titles.
As there are hundreds of job titles i would like to display the top 5 job titles under each supplier in a bar chart. In order to do that i created a measure where I rank the count of employees with each job title.
 
Rank = RANKX(all('Raw Data'[Job Title]),CALCULATE(COUNT('Raw Data'[Employee type])),,DESC,Dense)
I got the below result.
 
As the next step i wanted to create a column where if the rank is <=5, i display the job title else I display the value as "Others". 
But when i create calculated column using the above formula the rank shows only 1 as value.
How to create the rank calculation as a calculated column? if Im able to do that, I can then create another conditional column to partition the data to top5 and remaining Others. 
Categories:
I have the same question (0)
  • Suggested answer
    mmbr1606 Profile Picture
    14,006 Super User 2025 Season 2 on at
    How to create calculated RANK column in power bi
    hey
     
     
    you are in the wrong forum here, this is about the powerup program
     
    please repost here:
     
     
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Leaderboard > Microsoft Power Up Program Community

#1
timl Profile Picture

timl 182 Super User 2025 Season 2

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 154 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 107 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics