1. Variable aggregation
A Variable has a default method for combining source records into a Model value. Numeric flows such as revenue or expenses commonly usesum.
Balances, ratios, headcount, and other point-in-time results can require a different time rollup. For example, a quarter-end cash balance should show the closing balance rather than adding three monthly balances together.
2. Multi-value references
A formula reference can deliberately select several values. For example:3. Aggregation functions
Aggregation functions let you choose how several values become one result. Available functions:sumandproduct.average.minandmax.count.firstandlast.median.stdevandvar.
first, last, and median each accept one expression.
Example
If Department Revenue is Sales 50, Marketing 30, and Engineering 20:sum(Revenue[Department in any])returns 100.average(Revenue[Department in any])returns about 33.33.max(Revenue[Department in any])returns 50.median(Revenue[Department in any])returns 30.count(Revenue[Department in any])returns 3 when all three values are present.
Write the business meaning
Use the aggregation that matches the question. Totals usually usesum. Rates and ratios often need to be recalculated from their underlying totals instead of averaged after the fact.