Načítám...

How to calculate reverse cumulative inflation (CPI index) according to the years (Power BI)?


1. 2. 2022



I have spent an hours trying to find formula for calculating cumulative inflation (CPI index) … reversed in the time … according to the years. In Power BI. And it seems that it did not exist on the Internet till today?

That seems total incredible!

Yes, I have found lot of formulas for cumulative counting, but all of them had the common problems. Most of them consist ordinary „SUM“ function, which is not usable for calculating cumulative inflation (CPI index). They are good for calculating sum of sales etc., but not the inflation (CPI index). The second problem is, that when they does not have „SUM“ function, than they are not reversed. They do not calculace backwards in time. From today back to the history. And when they are reversed, than they does not calculate according to years. But according to diverse increasing numbers like here, etc.

The closest solution which i have found is here. But as above … it is not reversed. But when I adjust the formula a little bit, then it works perfectly:

Cumulative =
EXP(
SUMX(
FILTER(Inflation, Inflation[Year]>=EARLIEST(Inflation[Year])),
LN(1 + Inflation[Inflation])
)
)

You can try both formulas (original not adjusted and adjusted) to compare what they exactly do.

Enjoy!

 

 

PS: Kdyby to někdo hledal v češtině, tak je to jak v Power BI počítat zpětnou kumulativní inflaci? 🙂




Komentáře nejsou povoleny.



Další články

3. 2. 2025 Jan Hlavatý

BIM je mrtvý. Je to slepá cesta. Že to je slepá cesta v plné nahotě ukázala AI. Strašně krásně to popsal na LinkedIn Otakar Hobza. Zcela s ním souhlasím. BIM (minimálně do oboru elektro) dodnes nepřinesl nic, co by mělo práci ulehčit či usnadnit: software je stále nesmyslně drahý, a z hlediska potřebných funkcionalit prakticky nic neumí (např. neumí ani splnit […]


Číst více



8. 1. 2025 Jan Hlavatý

Tak se nám to povolování staveb zjednodušilo. Nebo ne?   Teorie Vyhláška o dokumentaci staveb oholila dokumentaci pro povolení prakticky na úroveň předchozího územního řízení, takže obsahově v ní za profese prakticky téměř nic není vyžadováno. Zjednoduší se dokumentace, takže se tím zjednoduší celý proces povolování. Ta nádherná myšlenka, že se dokumentace nahraje do portálu stavebníka, stavební […]


Číst více



31. 12. 2024 Jan Hlavatý

Kdo nic nedělá, nic nepokazí …


Číst více



Webdesign © 2018 David Jindra