Study FAQ
Which Fabric fact-table measures can I safely sum across dimensions?
Also asked as 2
- How do additive, semi-additive, and non-additive facts differ?
- Why should ratios and snapshot balances not always be summed in Fabric analytics?
Answer
Sum a measure only across dimensions where its business meaning permits addition. Additive facts support sums across relevant dimensions, semi-additive facts support some dimensions, and non-additive facts such as ratios need a different calculation.
Sales quantity or revenue in a consistent currency can be additive. An account or inventory balance can be meaningful across compatible entities at one date but should not normally be summed across daily snapshot dates. Unit and currency compatibility still matter: a numeric data type does not establish additivity.
For ratios, preserve the components needed for recomputation. Store revenue and cost, for example, so aggregate margin can be calculated from their totals. Summing or taking an unweighted average of row-level margin percentages can give a different and incorrect answer.
Document each stored measure's unit, currency, input grain, and permitted aggregations. Test detailed totals against higher-level results and include snapshot dates and unequal ratio denominators. The physical model should supply reliable components before a semantic layer defines context-aware measures.
Full explanation
DP-600: Dimensional Modeling for Fabric Lakehouses and Warehouses
Study guide · DP-600
Read the full explanation