Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Calculating % Change between selected periods

Does anyone know how to calculate the change between selected periods. I want to be able to compare one 4 week period to another.   I want to show the % change between the sum of (9/22, 9/29, 10/06...
  • Anonymous's avatar
    Anonymous
    7 years ago

    Thanks! I ended up doing something pretty similar to that.  Mine looked like this:

     

    Total Sales Period 1 = CALCULATE(SUM(Table1[Total Sales]), DATESINPERIOD(Table1[Date].[Date],MAX(Table1[Date]),-22,DAY) )

     

    Total Sales Period 2 = CALCULATE(SUM(Table1[Total Sales]), DATESINPERIOD(Table1[Date].[Date],MIN(Table1[Date]),22,DAY) )

     

    Sales Difference = [Total Sales Period 2] - [Total Sales Period 1]

     

    % Change = DIVIDE([Sales Difference], [Total Sales Period 2])