I suggest you this document rather:
The trick is:
Qlik Sense able to color by dimension, but color by measure is not applicable (yet?).
You can make "dimension" from your measures, as at the links explains above.
You can make these dimension in load script as well, and add to chart as second dimension.