Use a Different Performance Analytics Indicator Depending on Date
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2024 08:19 AM
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.
var result = null;
switch(score_start.getYearMonthUTC())
{
case 1:
result = [[indicator A]] YearMonth < 202401]];
break;
case 2:
result = [[indicator B]] YearMonth > 202312]];
break;
}
result;
Labels:
- Labels:
-
Performance Analytics
0 REPLIES 0