Show Percent Change Statistic in a Dashboard Widget

Riyaz3
Tera Contributor

I am trying to create a time series widget with indicator of open incidents which will show open incidents per month. i need to set a target for teams by 5% reduction month-on-month in the incident backlog. I am trying to bring in change percent statistic by PAFormulaUtils API but for some reason I am not getting the values in formula indicator.

Volume is shown in columns and trying to show the change percent as line which doesnot appear.

pa.getChangePercentage($[[Open IMs]],new GlideDateTime(score_start.getYear() + '-' + score_start.getMonth() + '-01'),score_start)

Need help in getting this fixed. Not sure if there is any specific system properties to be enabled/disabled to show the values.

 

find_real_file.png

2 REPLIES 2

Yousaf
Giga Sage

Hi,

I haven't implemented this so i am not sure but could you try to follow this example and save values in different variables than call them inside getChangePercentage.

find_real_file.png

 

Mark Correct or Helpful if it helps.


***Mark Correct or Helpful if it helps.***

Riyaz3
Tera Contributor

Hi Yousaf

I have tried that option too but still the value is not appearing. Hub shows no scores.

find_real_file.png