Forum Discussion
Help with bottom N negative results
Hi,
I would require help with this troubling issue that I am currently facing.
When I am filtering based on bottom N, negative or zero results are appearing. I am tried various method suggested but it seems that none of it works.
I want my final results to only show postive results if it is filtered by bottom N.
Link to the Power Bi file
Test.pbix
https://www.dropbox.com/scl/fi/57f6xcnflx1hhez97okwy/Test.pbix?rlkey=23mfhh7pe0c4dq6tg7rnz845r&st=xdihulp1&dl=0
Greatly appreciate for the advice given.๐
Ah, ok, my bad. It's evaluating the rank first, then filtering afterwards.
You'll need to apply the filter prior to each rank evaluation, something like this:
VAR _topItem = RANKX( //Filter table rank is evaluated over FILTER( ALL( Part_Sales[Item] ), [Total Sales] >= 0 ), [Total Sales], , DESC )Check whether this one works as required and, if it does, you'll need to apply a similar filter to each evaluation table in your rank variables.
Pete
11 Replies
- Chris_68
Helper I
Please use this link for the Power Bi file instead
Test.pbix
https://www.dropbox.com/scl/fi/57f6xcnflx1hhez97okwy/Test.pbix?rlkey=23mfhh7pe0c4dq6tg7rnz845r&st=nf2ywnyj&dl=0
Apologies for the confusion.