How can I display top 15 P Processors while grouping the rest as ‘All Other’ in a QuickSight Pivot Table?
Current setup:
Rows: Grouped Payer (Calculated Field), P Processor
Columns: Dates
Values: Units
Need to:
1. Show top 15 P Processors per category
2. Group remaining processors as 'All Other'
3. Maintain total units
Using standard top 15 filter removes others from the total. Looking for a solution that preserves the complete total while condensing the display.
Hello @kendesai Hope this message finds you well 
Here’s a suggestion for achieving this:
-
Rank Processors:
rank([Units], [Grouped Payer, P Processor], DESC)
-
Group ‘All Other’:
ifelse(rank([Units], [Grouped Payer, P Processor], DESC) <= 15, [P Processor], 'All Other')
-
Apply in Pivot Table: Replace P Processor
with the calculated field to show top 15 and group others as ‘All Other’. Total units will remain intact.
Hope this helps you!
Thanks for the suggestion. I’m getting a syntax error with the rank function. Could you share the exact QuickSight syntax that worked for you?
what type of error do you get?
Hi @kendesai
It’s been a while since we last heard from you. If you have any further questions, please let us know how we can assist you.
If we don’t hear back within the next 3 business days, we’ll proceed with close/archive this topic.
Thank you!
Hi @kendesai
Since we have not heard back from you, I’ll go ahead and close/archive this topic. However, if you have any additional questions, feel free to create a new topic in the community and link this discussion for relevant information.
Thank you!