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,
My RANKX function is not working properly when I apply a Brand filter. For example, without filters I get the following rank
But when I apply a Brand filter, to select only Pure Sunfarms, Redecan, and Good Supply the ranking changes:
My formula is:
Rank (Total Sales) Brand =
IF(
HASONEVALUE(
'OCS-daily-2018-2023'[brand]
),
RANKX(
ALL(
'OCS-daily-2018-2023'[brand]
),
[Total Sales],
,
DESC,
Dense
)
)
and my model looks like this:
Any help is greatly appreciated.
Hi, I tried that but it's not working. I want to keep the same rank:
1,2,3 even when applying the brand filter
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 | |
| 7 | |
| 6 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 9 | |
| 8 | |
| 8 | |
| 8 |