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? 🙂
15. 5. 2026 Jan Hlavatý
Kterak to chodí v projekční branži, aneb … někdy v roce 2007: Běžící projekt, potřebujeme abyste rychle přijel na jednání, musíme změnit napájení technologie! Tehdy jako cucák, zaměstnanec v realizační firmě, jsem všeho nechal, v Brně skočil do auta, a valil do Prostějova, abych zákazníkovi splnil, co mu na očích uvidím. Seděli jsme na jednání, kde se domluvilo, že […]
1. 4. 2026 Jan Hlavatý
„Tak už jsem na to přišel…“ a hodil u toho na stůl další dokumentaci pro povolení s bezcenným výkresem hromosvodu. „Na co jsi přišel?“ díval se na něj nechápavě. „No proč to tam furt cpou. Ty hromosvody.“ „Jak cpou, vždyť se to musí, ne?“ „Ale hovno!“ zařval rozčileně. „Nemusí! Proč by muselo?!“ „Jak proč by muselo, protože to […]
30. 1. 2026 Jan Hlavatý
Dlouho jsem nenapsal nic o měření času. Mám za sebou nějakých 6.666 odměřených hodin práce. Tak se pojďme podívat, co jsou nejčastější činnosti projektanta elektro. Nejčastější jakože nadpoloviční. Nejvíce času stráví … psaním e-mailů. Potom je to psaní technických zpráv, byť tady to bude silně zkresleno tím, že většinu práce za mě udělá Generátor technických […]
Webdesign © 2018 David Jindra