Forum Discussion
Oros
5 years agoPost Prodigy
Exclude items from TOPN
Hello. I have a report with TOP N. I created a new TOP TABLE and put the index top 5, top 10 and top 15. I created a measure to add in the filter of the report: ITEM TOP in SelectedN = IF([IT...
Oros
5 years agoPost Prodigy
Hi Anonymous ,
Where exactly should I filter the items here? Thanks.
ITEM RANKING = RANKX(ALL(Product_Table[Item]),Product_Table[Sales],, DESC)
Anonymous
5 years agoNot applicable
Hi Oros
try it
ITEM RANKING = RANKX(FILTER(ALL(Product_Table[Item]),Product_Table[Item])<>"yourItem1"&&Product_Table[Item])<>"yourItem2"),Product_Table[Sales],, DESC)- Oros5 years agoPost Prodigy
Hi Anonymous ,
It does not look like it's working. Maybe it's just missing some characters?
Attached is the screenshot directly from Power Bi. Just for the purpose of this example, I replaced the original table name to 'Product_Table'. Please ignore the spaces atthe beginning and end of 'Product_Table'. But how it looks in Power Bi with the original table name is the same.
Thanks.
- Anonymous5 years agoNot applicable
Hi Oros
Yes, && is missing between the two items, highlighted here
ITEM RANKING = RANKX(FILTER(ALL(Product_Table[Item]),Product_Table[Item])<>"yourItem1" && Product_Table[Item])<>"yourItem2"),Product_Table[Sales],, DESC)- Oros5 years agoPost Prodigy
Hello Anonymous ,
Thank you for your reply.
I tried it and still did not work. The second item to exempt is greyed out.
Please see attached.
Thanks again.