Bucket group 0-5 days incidents and 6-10 days incidents are not showing correctly

Mansi roy
Tera Contributor

I have designed an indicator. In breakdown i have provided Age.

 

In indicator source i have provided the filter created on last 3 months.

In Age breakdown the script has been written 

var diff=function(x,y){return y.dateNumericValue() - x.dateNumericValue();};
var days=function(x,y){return diff(x,y)/(24*60*60*1000);};
days(current.opened_at, score_end);
 
I have created Bucket group and created bucket 0-5 days.
 
Mansiroy_0-1728752193739.png

 

But it is always giving 0.

 

Can anyone please help me how to achieve this one.

 

 

 

 

 

2 REPLIES 2

AndersBGS
Tera Patron
Tera Patron

Hi @Mansi roy ,

 

Have you verified the fields is correct named field names from you script? current.opened_at, score_end - are these correct?

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

Best regards

Anders

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/

Hello @AndersBGS ,

 

Thank you for your reply.All field names are corrrect. But it is not giving the value.