Forum Discussion
leandroduarte
5 years agoHelper I
Inflation accumulated
Hi, I'm trying to find a solution for accumulated inflation in Dax. This is based on the following rule Period Inflation Accumulated Rule 1 5.7% 5.7% first row = Inflation 2 3...
Anonymous
5 years agoNot applicable
I build a measure to achieve your goal.
Accumulated =
VAR _FirstAcc =
SUM ( 'Table'[Inflation] )
VAR _RestAcc =
(
PRODUCTX (
FILTER ( ALL ( 'Table' ), 'Table'[Period] <= MAX ( 'Table'[Period] ) ),
'Table'[Inflation] + 1
)
) - 1
RETURN
IF ( MAX ( 'Table'[Period] ) = 1, _FirstAcc, _RestAcc )
Result:
You can download the pbix file from this link: Inflation accumulated
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
2 years agoNot applicable
Se você puder calcular uma inflação em duas vezes, basta mudar "ALL", para "ALLSELECTED", e criar uma caixa de filtro!!