After watching EDNA’s modules on RANKX I’m still not able to solve this RANKX scenario.
The ranking in the example below should be dynamically modified by Customer in the Matrix Rows, Year in the Matrix Columns and Group , Year and Week in the slicers. The ranking is based on the Volume measure shown herebelow.
Issue:
When all weeks are selected the ranking works fine, but whenever I filter on certain weeks the ranking shows double ranks. How can I solve this?
It would be great for the forum members if you could upload the working of the PBIX file so that they can assist you in a better and efficient manner while you upload a query.
From what I see is that in your RANKX formula you’ve referred the Fact Table rather than referring the Dimension Table of the Customers. In my file, I tried the logic that you’ve applied and it gave me the same results that you’re facing where Ranks are being repeated until I replaced the logic with the Customer Dimension Table and then got the correct results.
Below is the screenshot provided for the reference -
Note: The naming convention might change. Please replace the FactTable[Customer] with the DimensionTable[Customer].
I’m also attaching the working of the PBIX file for the reference. If this doesn’t solve the problem then please attach the working of your PBIX file so that members of our forum can have a better look at it.