Forum Discussion
Top 10 / Other
- 10 years ago
Anonymous
In this scenario, I think you can firstly create a calculated column for RANK:
RANK= RANKX(ALL(Table), SUMX(Table, Table[Sales]))
Then create a display name column based on this RANK column:
DISPLAY_CUSTOMER= IF(Table[Rank]>10,"Other",Table[Customer])
Now you just need to drag the DISPLAY_CUSTOMER column into your table visual, all the "Other"s will be aggregated.
Regards,
- 10 years ago
v-sihou-msft I was thinking about that, the only reason that solution would not work is if the Top 10 needs to be dynamic ie. respond to filters. If filters don't really matter, then that solution is great.
- 10 years ago
Here's a template for TopN & Other I've been playing with:
https://www.dropbox.com/s/59cct4in6zqbxaj/Sales%20Top%20Other.pbix?dl=1
The final measure is [Sales Amount Top & Other] which is displayed per Customer for Top Customers, otherwise just totalled.
I also threw in a Rank measure.
It might not fit everyone's requirements, but just another idea to throw into the mix ;)
hi OwenAuger ,
Thanks for you tip putting months in a different table fixed the issue...
One last question i promise ...
Your formulas are showing the top 10 countries of each year which is perfect ...
IS there a wat to not show blank for the ones that are in the matrix and considered top in different years ?
Basically not to leave any cells empty ?
thanks a lot for your support.
Alex
That is an interesting requirement 🙂
Just confirming, what would you like to display instead of blanks? Just the usual [Th Tn 2] measure value for that country?
(Just wanted to check this before writing the DAX)
If so, that shouldn't be too tricky. It would effectively change the behaviour so that the "top" countries are countries that are in the Top N in at least one of the displayed years.
Regards
Owen
- alexbalazsalex6 years agoHelper IV
hi OwenAuger
Exactly the usual sum of tons for that year ...show the all values if in one of the years in top 10 ..
Many Thanks for your support .
Alex
- alexbalazsalex6 years agoHelper IV
Exactly the usual sum of tons for that year ...show the all values if in one of the countries in top 10 ..