Forum Discussion
Pepe1234
2 years agoFrequent Visitor
Acumulative inflation
Hi, I'm trying to calculate cumulative inflation, month by month for unit price forecast (DAX not Power Query). I need two columns: - one column with cumuative_inflation (I tried with "Pro...
amitchandak
2 years agoSuper User
Pepe1234 , Try with a common date table
Cumulative_Inflation =
CALCULATE(
PRODUCTX(FORECAST_TABLE, 1 + [INFLATION]),
FILTER(all(Date), Date[DATE] <= max(DAte[DATE]))
)
Unit_Price_Forecast =
VAR LatestPrice = calculate(Max(SALES_TABLE[UNIT_PRICE]), FILTER(all(Date), Date[DATE] = max(DAte[DATE])))
RETURN
[Cumulative_Inflation] * LatestPrice
Pepe1234
2 years agoFrequent Visitor
I expected columns in yellow:
BR
Ramiro