Dynamicly changed coloring threshold

Hello everybody.
Does anybody know how to (if it’s possible at all) make threshold value dynamic. This would be very useful when you’re using repeat functionality ( for example for singlestat element) and you have different threshold for each singlestat element.
I’ve searched documentation through and found nothing.

Thanks in advance.