Forum Discussion
Top N + Others
What is the simplest way to get TOP N + Other sales figure in Power BI.
Can this be handled by filters?
8 Replies
- AnonymousNot applicable
if you intend to obtain two tables such that in the first there are the first n largest values and in the second the others, you can do so:
tabSort=Table.Sort(Source,{{"sales", Order.Descending}})
TopN = Table. FirstN (tabSort, N),
others = Table.Skip (tabSort, N)- gauravnarchalPost Prodigy
Is there a better way that you can advise to handle this requirement?
Can filters help to get top N + Other?
- AnonymousNot applicable
I know of other ways of achieving the same result.
If this is what you want, you should define more precisely what you mean by "better way".
Do you use less memory?
It's faster?
Do you use a single expression?
Other!?
- FowmySuper User
Check this article from SQLBI :
https://www.sqlbi.com/articles/showing-the-top-5-products-and-others-row/
________________________
Did I answer your question? Mark this post as a solution, this will help others!.
I accept KUDOS ☺