cancel
Showing results for 
Search instead for 
Did you mean: 
intapiuser
Community Team Member
Community Team Member
This script replaces N/A values with 0 values. Applies for Indicator widgets.
Before:
After:

Copy the following script and place it under 'Edit Script' in the designated Indicator widget:
widget.on('render', function (w, q) { 
 if (isNaN(w.queryResult.value.data) === true)
 {
  w.queryResult.value.data = 0;
  w.queryResult.value.text = "0";
 }
 
 if(w.queryResult.secondary != null && isNaN(w.queryResult.secondary.data) === true)
 {
  w.queryResult.secondary.data = 0;
  w.queryResult.secondary.text = "0";
 }
})
Rate this article:
Comments
Raja_23
7 - Data Storage
7 - Data Storage

I tried same it's not working for me.

Version history
Last update:
‎03-02-2023 09:09 AM
Updated by:
Contributors