Forum Discussion
Anonymous
6 years agoNot applicable
Rankx on a matrix
i am trying to do rankx on a matrix table but when i drill down i would like the rankx to recalculate when i drill down, currently i have the following fields in my matrix and want to do the rank by ...
v-xicai
Community Support
6 years agoHi Anonymous ,
You may create measure like DAX below .
Endleaf Rank =
SWITCH (
TRUE (),
ISINSCOPE ( Sales[Username] ), RANKX (
ALLSELECTED ( Sales[Username] ),
CALCULATE ( SUM ( Sales[Point] ) ),
,
DESC,
DENSE
),
ISINSCOPE ( Sales[Date].[Month] ), RANKX (
ALLSELECTED ( Saless[Date].[Month] ),
CALCULATE ( SUM ( Sales[Point] ) ),
,
DESC,
DENSE
),
ISINSCOPE ( Sales[store]]] ), RANKX (
ALLSELECTED ( Store[store] ),
CALCULATE ( SUM ( Sales[Point] ) ),
,
DESC,
DENSE
),
ISINSCOPE ( Sales[Product]]] ), RANKX (
ALLSELECTED ( Store[Product] ),
CALCULATE ( SUM ( Sales[Point] ) ),
,
DESC,
DENSE
)
)
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous6 years agoNot applicable
thanks amy, still not geting the outcome i would expect as i am still getting just loads of 1 when i drill down;