Forum Discussion
Inflation accumulated
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.
- Syndicate_Admin5 years agoAdministrator
Good morning @RicoZhou , thank you very much for the contribution! I used it on my board and it works perfect!
I have a related query, how should the measure be to visualize the cumulative total of inflation on a card? Continuing with the previous example you would need to display on a card the value 33.2%.
Thank you so much for the help!
Frederick
- Syndicate_Admin5 years agoAdministrator
I share the solution I found to make it look like in the image the inflation accumulated in the last 12 months in card format:
The measure for the card is:
Measure name = (PRODUCTX(FILTER(all(FACT_Inflacion); FACT_Inflacion[Date] >= MIN(FACT_Inflacion[Date]));FACT_Inflacion[IPC - Indec] + 1))-1
- Anonymous2 years agoNot applicable
Se você puder calcular uma inflação em duas vezes, basta mudar "ALL", para "ALLSELECTED", e criar uma caixa de filtro!!