Knowledge Base Article

Add A Plus Sign To Indicator Value

The simple script below will allow you to add a plus sign to the primary Indicator Value:
widget.on('processresult', function(w, args) {
var data = args.result.value.data;
if(data > 0) {
args.result.value.text = '+' + args.result.value.text;
}
}); 
Updated 03-02-2023

2 Comments

Comments have been turned off for this article
  • Is it possible to do this for values in a pivot table, rather than an indicator? For example, if I have a pivot table showing 2022 values, 2023 values, and then I want to show the difference between the two. In other words: I don't want to prepend a "+" sign to any positive number in the table, but only the positive numbers in a specific column/value (the one showing the difference between 2022 and 2023).

  • Hello Jake_Raz.

    First of all, I know this answer has taken a while. These posts from intapiuser were created by an automated migration and are not monitored.

    That's a great question. If you haven't found an answer yet, please post this in the Build Analytics Discussions section. We are happy to help you there.

    Have a great day!