If the measure is >= the target then we will make this segment not show as it will be the same value as the segment boundary we created in step 1.
If the measure is < the target then we will set the boundary to 0 which makes this segment overwrite the green segment from step 1.
Once this has been done you will notice that only two segments will show at one point in time which is how we have programmed it to work. However, this does make the gauge hard to change once setup which is why these steps are important.
example app attached... Please not that the variable uses an extension so I have attached this also.