I have 2 query results.
qryRevenue
Revenue_Month(text)
Revenue_Year (number)
RevenueMoYr (text)
RevenueDate (date)
SL_Bucket (text)
SL_Prod (text)
ProdRevType (text)
Revenue Amount (number)
qryAssumptions
Assumption_Month (text)
Assumption_Year (number)
AssumpMoYr (text)
AssumptionDate (date)
AssumpDateMinus1 (date)
SL_Bucket (text)
SL-Prod (text)
ProdRevType (text)
ForecastAmt (number)
Here's my quandary:
I want to combine the two in a query BUT the forecasted amounts by month are based on what happened the previous month. The problem is all future months (meaning Sept forward) must be an amount equal to whatever is in the Forecast Amt for Sept 2015 plus the amount in August 2015. Seems easy enough, but going forward Oct must be what's in the ForecastAmt field plus August, and Nov plus August and so on BUT only for ProdRevType that equals "MRR". I hope that makes sense.
I don't know how to write the expression or if there's another way. It needs to say something like "If the ProdRevType is MRR, then add the ForecastAmt to RevenueAmt where the Assumption Date progresses by month but the date associated with The RevenueAmt remains the same.
qryRevenue
Revenue_Month(text)
Revenue_Year (number)
RevenueMoYr (text)
RevenueDate (date)
SL_Bucket (text)
SL_Prod (text)
ProdRevType (text)
Revenue Amount (number)
qryAssumptions
Assumption_Month (text)
Assumption_Year (number)
AssumpMoYr (text)
AssumptionDate (date)
AssumpDateMinus1 (date)
SL_Bucket (text)
SL-Prod (text)
ProdRevType (text)
ForecastAmt (number)
Here's my quandary:
I want to combine the two in a query BUT the forecasted amounts by month are based on what happened the previous month. The problem is all future months (meaning Sept forward) must be an amount equal to whatever is in the Forecast Amt for Sept 2015 plus the amount in August 2015. Seems easy enough, but going forward Oct must be what's in the ForecastAmt field plus August, and Nov plus August and so on BUT only for ProdRevType that equals "MRR". I hope that makes sense.
I don't know how to write the expression or if there's another way. It needs to say something like "If the ProdRevType is MRR, then add the ForecastAmt to RevenueAmt where the Assumption Date progresses by month but the date associated with The RevenueAmt remains the same.