Hi Robert,
Use Global Script Functions with an input parameter for it.. Have that input paramater as the Value of the Key Figure.
Now.. Since your Conditional Statements are same for all the indicator lights, anywhere you want to compare, just Call the Global Script function with the Input paramter as Data Cell value that you wanna compare with statements... It will be like..
GlobalScripts.Indicator_Script(DataCell Value);
This function would call the script which will have an If..Else statements according to your threshold value.. Here you will jave to use three different Images - Indicator Light colors and according to the Conditons - Just swap the images in the Image component.
And.. For the Images.. You can use Jpeg ... But the ideal thing for this would be, use URI of images.. Go into duri.me link and upload all the three images one by one and copy the "Base 64 Code" - Green light, Yellow light , red light..
Now.. Create three CSS classes.. I will show you one example :
.green{
background-image: "<Paste the URI or the Base 64 Code
here>";
}
Now you will have 3 classes in yr CSS file.. So, when the appropriate condition is satisfied, apply the appropriate CSS class to the IMAGE component...
This will definitely work..
Hope your Question in this thread is ANSWERED !
BR
Gowtham S