DAX Contribution to Growth Measure

Shows how much of the total company-wide sales growth came from each individual item.

Ranking and Top NAdvancedcontributiongrowthyoy

DAX code

Contribution to Growth =
VAR ItemGrowth = [Total Sales] - CALCULATE([Total Sales], SAMEPERIODLASTYEAR('Date'[Date]))
VAR TotalGrowth = CALCULATE([Total Sales], ALLSELECTED('Product')) - CALCULATE([Total Sales], ALLSELECTED('Product'), SAMEPERIODLASTYEAR('Date'[Date]))
RETURN
    DIVIDE(ItemGrowth, TotalGrowth)

Notes

Requires a marked Date table; the result can exceed 100% or go negative for items that grew while others shrank.

Requirements

Builds on these measures

How to use this measure

  1. In Power BI Desktop, select the table that should hold the measure and choose New measure on the ribbon.
  2. Paste the code, then replace the placeholder table and column names with your own. The My table names fields above do this for you.
  3. Run it through the DAX Formatter if you want it laid out in your team's style.

Related DAX measures

More DAX resources

Browse all 175 measures in the Power BI DAX Measures Library, or search the library for something similar to Contribution to Growth.