Forum Discussion
Exclude specific values from top n
- 5 years ago
hill , Try to create a measure like this and rank/TOPN on that
new sales =calculate([Sales], filter(data, data[companyname] <> "Others"))
- 5 years ago
Please try this expression instead.
Top 5 Concentration =
DIVIDE (
CALCULATE (
[Sales],
TOPN (
5,
FILTER (
VALUES ( data[companyname] ),
data[companyname] <> "Others"
),
[Sales], DESC
)
),
CALCULATE (
[Sales],
ALLSELECTED ( data[companyname] )
)
)Regards,
Pat
Thank you for your reply, but I am afraid that you are not answering my question.
"Others" is a company name, not a remaining part of top 5. Instead, it's part of top 5
"Others" is the aggregation of all small companies. So it can be very large to be top 1 in the category
hill , Try to create a measure like this and rank/TOPN on that
new sales =calculate([Sales], filter(data, data[companyname] <> "Others"))
- hill5 years agoHelper I
Thank you very much! it works for me