The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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
User | Count |
---|---|
15 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
24 | |
21 | |
12 | |
10 | |
7 |