Forum Discussion

Fools_Gold's avatar
Fools_Gold
Helper I
1 year ago
Solved

Problem with Formula

Hello, I am trying to calcuate a forecast to look at the next month. In this instance, I am trying to calculate a forecast 4 months ago to look for 3 months ago. The calculated column I am using is ...
  • Fools_Gold's avatar
    1 year ago

    Thank you for everyone's help. I solved it. See below:

    Lock 4 Months Ago for 3 Months Ago Rolling Test #3 =
     CALCULATE(
            SUMX('Custom Report 6','Custom Report 6'[SalesQty]),DATESBETWEEN('Custom Report 6'[MonthStart],[First Day of Month 3 Months Ago],[End of Month 3 Months Ago]), FILTER('Custom Report 6',(DATE(YEAR('Custom Report 6'[DataType_2]),MONTH('Custom Report 6'[DataType_2]),1)=DATE(YEAR([First Day 4 Months Ago]),MONTH([First Day 4 Months Ago]),1))))