Forums

Full Version: To show any calculated field from tooltip
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How to show calculated field from tooltip?

Add this in dashboard script:  

 

sdk.calculation = sdk.calculation || {};  

sdk.setContext( 'main33', 0 );  

sdk.calculation.getfiltered= function(f1, f2){  

if(f1 ==0){  

return sdk.getContext( 'main33' );  

}else{  

sdk.setContext( 'main33', Math.abs(f1-f2) );  

return (Math.abs(f1-f2));  

}  

};  


Add this in calculation script area:  

 
sdk.calculation.getfiltered(column_name );