I’m working on a report now where I don’t only want to list N~Best Performers but also list N~Worst Performers. Could be Customers, Salespersons, Products or Regions for a selected Measure. But that is proving to be a challenge…
All related topics I could find were about Segmenting or only TopN, but nothing on BottomN - if you like.
Is there content that covers this? Can anyone point me in the right direction on how to list N~Worst Performers?
I tried that and couldn’t get it to work. Today I traced my steps and believe the underlying problem is Filtering. Let’s see if I can describe what I think is happening.
The [Selected Measure] is driven by a Report slicer AND the same is true for the ‘Customer’[SalespersonCode] this is filtered by a Report slicer on [Company name]. But when the VAR rankSP is evaluated it seems to ignore this Company Filter and result in a list of several BLANKS with a Ranking = 1.
How do I get RANKX to respect the Company filter in the report slicer and/or ignore all BLANKS?
Thanks again.
After I’ve made some changes for readebility because it’s mainly in Dutch at the moment. You’ll receive it via email (sorry I’m not allowed to publish the file to the forum).
Ok best then is to create an example file with the data masked.
Or just set up a clear example of exactly the same scenario.
Everything is public with the forum so that would be the best course of action here. I will be posting any solution on here.
I’m still just finding it difficult to understand the full scenario. I’ve read through the initial post a number of times and still not too sure of the exact scenario, so as I mentioned I will require something to test, or I need a much clear picture of everything that is going into this one.
Attached the sample file. As you can see the TopN works fine (and respects slicers)
But when the VAR rankSP is evaluated for the BottomN it seems to ignore the Company Filter and result in a list of several BLANKS with a Ranking = 1.