Filter the top/bottom N categories and display the rest as others​