Scripted Indicator scores repeating across breakdown elements
						
					
					
				
			
		
	
			
	
	
	
	
	
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
09-10-2025 02:36 PM
Hello Team,
I have written an indicator script but the scores are repeating across breakdown elements. the scores are showing correct if I individuation filter a query with an element of a breakdown. adding my script below. The script is about calculating 'past due days' of an incident category. Each category has multiple incidents and each incident has a resolution date. So when I show past due days at category level, i need to pick the earliest due date among all the incidents of that particular category. And then I subtract that date with the current day to get the number of past due days: How to address this issue? thanks in advance.
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
09-15-2025 07:40 AM
Could you check the pa_scores_l1 table, filtered for the Indicator & Breakdown in question and then post a screenshot of that list here? That would help to see what the issue is.
Thanks!
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
09-15-2025 08:01 AM
it just showed the score again while I was pulling data from scores table:)
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
09-15-2025 09:27 AM
From what I can see, the score is the same for each day for the same element, but the different element on the top also shows a different score. So based on just this, breakdown could be fine but your Indicator filtering could have issues.
Also, in your originally posted script there are some issues:
1. Missing "(" in setLimit
2. Variable "now" is not used anywhere.
3. Are you sure "opened_at_date" exists and works as you expect? I would use sys_created_on as that is a default field and also a datetime, not a date.
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
09-15-2025 10:55 AM
This issue is resolved. I wrote a simple indicator script and set the aggregate to minimum
