Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I have a table called 'Player Reference' that has the following columns: Player Name, Position Group, Maximum Speed.
I am looking to rank the Maximum Speed column to provide a Positional Maximum Speed Rank. Here's my current DAX, which works correctly:
Solved! Go to Solution.
Hi @KMichael99,
Are you using SELECTEDVALUE to get the value of Position Group selected in the slicer?
And I would suggest you use a variable to capture that value before using it in RANKX measure.
RankMeasure =
VAR __PositionGroup = SELECTEDVALUE('2023-24 Player Reference'[Position Group])
RETURN RANKX(
FILTER(ALL('2023-24 Player Reference'),'2023-24 Player Reference'[Position Group] = __PositionGroup),
CALCULATE(MAX('2023-24 Player Reference'[Season MV])))
Upvote and accept as a solution if it worked!
Brilliant, this works - thanks!
Hi @KMichael99,
Are you using SELECTEDVALUE to get the value of Position Group selected in the slicer?
And I would suggest you use a variable to capture that value before using it in RANKX measure.
RankMeasure =
VAR __PositionGroup = SELECTEDVALUE('2023-24 Player Reference'[Position Group])
RETURN RANKX(
FILTER(ALL('2023-24 Player Reference'),'2023-24 Player Reference'[Position Group] = __PositionGroup),
CALCULATE(MAX('2023-24 Player Reference'[Season MV])))
Upvote and accept as a solution if it worked!
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 7 | |
| 7 |