Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
100 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
113 | |
97 | |
84 | |
67 |