Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Solved! Go to Solution.
Hi @Anonymous ,
Based on your description, I have create a simple sample:
Please try:
topbottom =
VAR _a =
SUMMARIZE ( ALLSELECTED ( matches ), 'matches'[winner] )
VAR TOP5 =
MAXX (
FILTER (
ADDCOLUMNS ( _a, "Rank", RANKX ( _a, [win_by_runs_measure],, DESC, SKIP ) ),
[winner] = MAX ( 'matches'[winner] )
),
[Rank]
)
VAR Bottom5 =
MAXX (
FILTER (
ADDCOLUMNS ( _a, "Rank", RANKX ( _a, [win_by_runs_measure],, ASC, SKIP ) ),
[winner] = MAX ( 'matches'[winner] )
),
[Rank]
)
RETURN
IF ( Top5 <= 5, "Top", IF ( Bottom5 <= 5, "Bottom", BLANK () ) )
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or if you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Yes, there is no DAX for slicer, the measure will dynamicly rank for the visual after the slicer filtering the data. In this condition, you do not need DAX for slicer.
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Based on your description, I have create a simple sample:
Please try:
topbottom =
VAR _a =
SUMMARIZE ( ALLSELECTED ( matches ), 'matches'[winner] )
VAR TOP5 =
MAXX (
FILTER (
ADDCOLUMNS ( _a, "Rank", RANKX ( _a, [win_by_runs_measure],, DESC, SKIP ) ),
[winner] = MAX ( 'matches'[winner] )
),
[Rank]
)
VAR Bottom5 =
MAXX (
FILTER (
ADDCOLUMNS ( _a, "Rank", RANKX ( _a, [win_by_runs_measure],, ASC, SKIP ) ),
[winner] = MAX ( 'matches'[winner] )
),
[Rank]
)
RETURN
IF ( Top5 <= 5, "Top", IF ( Bottom5 <= 5, "Bottom", BLANK () ) )
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
THANKS
There is no dax for slicer ?
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.