Hello,
I have been struggling for quite a while with this problem and I am hoping someone can help me…
I am trying to create a TOPN measure that shows the TOPN customers by the Year over Year change in Average Sales Price. When I first started this measure, I noticed that the largest changes were due to customers with no sales in the prior year. You can see this in column 6 of the attached matrix.
So, I started my measure by creating the list of customers with sales in the prior year and then I built my YOY change calculation for those customers only. This is all working. However, when I try to show only the TOPN of those customers, the filter is not working in the matrix. If you look at the DAX query view, you will see that the query does return the TOP 5 only, but in the Matrix view it is not filtering only the top 5. I have two different measures in the far right of the matrix and neither works.
So your help in filtering the matrix down to the top 5 only will be appreciated. Also, I am not able to use the filter pane as this will be a dynamic page and this measure is only one of the measures I am creating. this one just ended up being more complicated.
Happy to answer any questions. Thanks for your help!
TOPN Problem.pbix (308.1 KB)