Use a Different Performance Analytics Indicator Depending on Date

Aa2468
Tera Contributor

Hello SN community,

 

I would like to create a Performance Analytics formula indicator that uses a different indicator depending on date. The following article shows this is possible and I've created the following script based on the provided example, but it is resulting in an "Invalid Formula" error. Any help or advice on how to properly create the script is greatly appreciated.

 

https://www.servicenow.com/community/performance-analytics-blog/doing-more-with-formula-indicators/b...

 

var result = null;
switch(score_start.getYearMonthUTC())
{
case 1:
result = [[indicator A]] YearMonth < 202401]];
break;
case 2:
result = [[indicator B]] YearMonth > 202312]];
break;
}
result;

0 REPLIES 0