Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi,
I was able to rank sales by various dimensions on a daily basis but wasn't able to incorporate the monthly ranking into my measure:
RANKX(
ALLSELECTED( 'Table'), // Need to keep allselected so that ranking applies to other attributes
[Revenue Sales], // Measure
, DESC, Dense
)
Hi @RogerSteinberg ,
Please give a copy of the sample data and the formula for the measure [Revenue Sales].
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Try the measure:
RankColumn = RANKX(FILTER(Table,Table[Month]=EARLIER(Table[Month])),RevenueMeasure,,DESC, Dense)
By doing so , you remove the allselected logic which is crucial when I need to rank games by sales . I also have slicers .
Use this:
RankColumn = RANKX(FILTER(ALLSELECTED(Table),Table[Month]=EARLIER(Table[Month])),RevenueMeasure,,DESC, Dense)
it gives me the same value. its not working
User | Count |
---|---|
97 | |
87 | |
77 | |
67 | |
63 |
User | Count |
---|---|
111 | |
96 | |
96 | |
67 | |
63 |