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...
Anonymous
5 years agoNot applicable
Hi Oros
You are using this measure in Filters pane to filter [ITEM TOP in SelectedN]=1 to display the Items you need, modify this one a little bit
ITEM TOP in SelectedN =
IF (
SELECTEDVALUE ( yourTable[yourItemColumn] )
IN { "yourItem1Name", "yourItem2Name" },
0,
IF ( [ITEM RANKING] <= [ITEM TOPSELECTED], 1, 0 )
)- Oros5 years agoPost Prodigy
Hi Anonymous ,
Thank you very much for your reply. It works in filtering out the items to be excluded. But it is not replacing those excluded items.
For example if the Top 5 items are A, B, C, D, E and you would like to exclude items D and E, the TOP 5 should be items A, B, C, F, G and not just A, B, and C. The Top 5 items should still show 5 items and not 3 itmes.
The same thing if Top 10 is selected, if any there are two (2) items excluded, the Top 10 should take the 11th and the 12th to replace the excluded items.
Thanks again.