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? 🙂
19. 3. 2023 Jan Hlavatý
Poslední příspěvek o hardware pro projektování jsem vypustil bezmála před 10ti lety. Mezi tím jsem měl ještě jeden další rozepsaný cca 5 let zpátky, ale nepublikoval jsem jej. Kam se to tedy za těch 5-10 let všechno posunulo? Procesor V roce 2014 jsem používal Intel i7-3770 (4 jádra + 4 virtuální, 8 MB cache, 3,4-3,9 GHz, […]
18. 2. 2023 Jan Hlavatý
Před nějakou dobou jsem psal úvahy o tom, kam se bude vyvíjet obor projektování elektro. Byl jsem vedle jak ta jedle. Není tomu totiž ani půl roku nazpět, co došlo k zásadnímu zlomu. Zpřístupnění modelů umělé inteligence světu. Dnes se o ní mluví pomalu na každém rohu, ale podle mě si ještě jen málokdo uvědomuje, jaké může a bude mít […]
31. 12. 2022 Jan Hlavatý
Jak bych charakterizoval rok 2022? Jako rok nastupující automatizace. A fotovoltaik. V automatizaci je asi nejmarkantnější rozdíl oproti všem předchozím letům v tom, že už existují běžně dostupné nástroje, které umí spoustu pracovních rutin automatizovat, a to i běžnému smrtelníkovi. Že už není nutno jak cvičená opice něco monotónně cvakat, ale že si lze vycvičit opici, která cvaká za […]
Webdesign © 2018 David Jindra