Creating semi-additive measures
Power BI has three different types of measures it can perform: additive, non-additive, and semi-additive. We will check each of them out in the following sections.
Additive measures
An additive measure, such as sum, aggregates over an element. Our gross profit calculations are examples of additive measures. The gross profit for each product item group adds up to the gross profit for all product item groups.
Non-additive measures
Non-additive measures do not aggregate over anything. DISTINCT COUNT
is a good example of this. The DISTINCT COUNT
value of product SKUs ordered over a month does not equal the sum of distinct counts of every day of that month.
Semi-additive measures
Semi-additive measures use SUM
to aggregate over some of the elements and different aggregations over other dimensions.
One common scenario that uses a semi-additive calculation is inventory.
Let's say we need to perform an inventory count in our warehouse...