Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have a data model in which I have created two measures,
m_personal_recruits -> tells how many recruits have been hired by a manager
m_personal_recruit_qv -> tells how much sales the new recruits have done
I use measures for these metrics because they need to be dynamic for the chosen date/ month range.
How can I add a rank measure so I can filter the rank on the visual. Say - top 20, 25, etc. The ranking has to be on m_personal_recruits & m_personal_recruits_qv combined because, managers can have the same number of recruits.
I can find exmaples where multiple calculated columns are used for ranking but not where multiples measures are used,
The RANK function allows you to specify multiple items to sort on, so you could create a measure like
Rank =
VAR BaseTable =
ADDCOLUMNS (
ALLSELECTED ( 'Table'[Manager] ),
"@PersonalRecruits", [m_personal_recruits],
"@QV", [m_personal_recruits_qv]
)
VAR Result =
RANK ( BaseTable, ORDERBY ( [@PersonalRecruits], DESC, [@QV], DESC ) )
RETURN
Result
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
80 | |
76 | |
60 | |
36 | |
33 |
User | Count |
---|---|
91 | |
60 | |
59 | |
49 | |
45 |