How to limit the number of stacked groups in a Trend Report?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2021 10:07 AM
Hi there. I have a Trend report that shows the number of incidents by category trended over the last 3 months (see below).
I need to limit the number of categories (i.e. groupings within each month's stack) to the Top 10, to make the report more readable and avoid there being more categories than can be shown on the legend.
There is a "Max Number of Groups" field (see below), but this appears to work against the X-axis (i.e. the months) instead of the categories.
Does anyone have a workaround or solution for this issue - or have you seen it before and concluded (like me) that it can't be done .. ?
- Labels:
-
Multiple Versions
-
Reporting

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2021 02:16 PM
I know Performance Analytics will let you do it in a widget using the "show top x" elements.
Show all:
Adding this setting:
Limits the graph:
So you could use that, it works for "Created by monthly", even though my example is "Open by daily". The problem is that it bases the "top x" on the latest score, not what the "top X" was for each month.
Another solution would be to create a a scripted filter that uses glideAggregate to count the number of incidents for each category, and return the top 10 categories. Then return all the incidents belonging to those categories in an array.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2021 01:18 AM
Hi,
Sadly we don't have a PA license so I probably can't use that as we are unable to create new indicators to base it on 😞
And also, the limitation that the "top x" would be based on the latest score also doesn't quite meet the need because we report / trend on quarterly stats.
There is already a scripted filter underpinning this report that sets some specific conditions for inclusions, so I think that modifying that as you suggest to add a query for TOP10 categories first is the way to go!
Thanks again
Jon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2023 03:16 PM
I'm curious if you figured out a solution for this and how you implemented it. I have the same requirement and cannot get there from here.