Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Solved! Go to Solution.
Hi Mark,
First off, very well articulated question. Kudos for that!
I think the issue could be that the Rank is calculated separately for both the categories (Client and Competitors). To solve that, you can change your DAX expression into the following,
Nielsen - Spend, Dynamic Top N =
VAR SelectedTop =
SELECTEDVALUE ( 'Top N'[Top N] )
RETURN
SWITCH (
TRUE (),
SelectedTop = 0, [Nielsen - Spend, Dynamic],
RANKX (
CROSSJOIN(
ALLSELECTED ( 'Spend (Nielsen) Dynamic Axis'[Axis] ),
ALLSELECTED ( '<Table Name>'[CompetitorFlag])
),
[Nielsen - Spend, Dynamic]
) <= SelectedTop, [Nielsen - Spend, Dynamic]
)
Let me know if this helps.
Regards,
Mi2n
Hi Mark,
First off, very well articulated question. Kudos for that!
I think the issue could be that the Rank is calculated separately for both the categories (Client and Competitors). To solve that, you can change your DAX expression into the following,
Nielsen - Spend, Dynamic Top N =
VAR SelectedTop =
SELECTEDVALUE ( 'Top N'[Top N] )
RETURN
SWITCH (
TRUE (),
SelectedTop = 0, [Nielsen - Spend, Dynamic],
RANKX (
CROSSJOIN(
ALLSELECTED ( 'Spend (Nielsen) Dynamic Axis'[Axis] ),
ALLSELECTED ( '<Table Name>'[CompetitorFlag])
),
[Nielsen - Spend, Dynamic]
) <= SelectedTop, [Nielsen - Spend, Dynamic]
)
Let me know if this helps.
Regards,
Mi2n
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
110 | |
102 | |
99 | |
38 | |
37 |
User | Count |
---|---|
158 | |
125 | |
76 | |
74 | |
63 |