How to limit the number of stacked groups in a Trend Report?

Jon Duffy
Tera Contributor

Hi there.  I have a Trend report that shows the number of incidents by category trended over the last 3 months (see below). 

find_real_file.png

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 .. ?

find_real_file.png

3 REPLIES 3

NikEng1
Giga Guru

I know Performance Analytics will let you do it in a widget using the "show top x" elements.

 

Show all:

find_real_file.png

 Adding this setting:

find_real_file.png

 Limits the graph:

 

find_real_file.png

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.

 

Hi, @NikEng many thanks for the quick and detailed reply!

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

Scott Parrish
Tera Contributor

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.