<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<div>
<p>
In this example, the <code>"differenceofcolumn"</code> and
<code>"%differenceofcolumn"</code> aggregations are used to calculate a
Difference of Column and a % Difference of Column of prices depending on a
country and color.
</p>
<p>
The <code>sum</code> aggregation is also used to demonstrate how the
difference is calculated.
</p>
<p>
Each cell shows either the difference or the percentage difference between
two adjacent cells of the same level from top to bottom.<br />
Cells in the top row are always empty because there are no adjacent cells
above them.
</p>
<p>
Read more about the
<a
target="_blank"
href="https://www.flexmonster.com/doc/aggregation-functions/#difference-of-column"
>"differenceofcolumn"</a
>
and
<a
target="_blank"
href="https://www.flexmonster.com/doc/aggregation-functions/#percent-difference-of-column"
>"%differenceofcolumn"</a
>
aggregations in Flexmonster docs.
</p>
</div>
<div id="pivot-container"></div>