<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<div>
<h2>Apply conditional formatting based on a calculated measure</h2>
<p>
This example shows how to apply conditional formatting based on a
<a href="https://www.flexmonster.com/doc/calculated-values/" target="_blank"
>calculated measure</a>. It can be done by specifying the value's
<a
href="https://www.flexmonster.com/api/measure-object/#uniquename"
target="_blank"
>uniqueName</a> in the <code>formula</code> property.
</p>
<p>
We are formatting the <code>"Price"</code> measure based on the
<code>"Revenue"</code> calculated measure (lines 17-21 in the JavaSript box).
Check out how the the <code>formula</code> property is specified (line 26 in
the JavaScript box).
</p>
<p>
Learn more about
<a
href="https://www.flexmonster.com/doc/conditional-formatting/"
target="_blank"
>conditional formatting</a> in Flexmonster.
</p>
</div>
<div id="pivot-container"></div>