Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
Syndicate_Admin
Administrator
Administrator

% Cumulative inflation

I have the following table with the monthly inflations of each period. I need to create an accumulated measure, to calculate the % of inflation accumulated to each month. What I would need is that when selecting a certain period, I mark the accumulated inflation of that entire period. For example if filter selecting 8 months, check the accumulated inflation of those 8 months, and so on.
I would also like to have an option that when selecting a certain month, throws me the accumulated inflation of the last 12 months, from that month selected individually.

Period% inflation
one-203,70%
feb-202,30%
mar-202,00%
Apr-203,30%
may-201,50%
June 201,50%
jul-202,20%
ago-201,90%
sep-202,70%
oct-202,80%
nov-203,80%
Dec-203,20%
one-214,00%
feb-214,00%
mar-213,60%
Apr-214,80%
may-214,10%
June 213,30%
jul-213,20%
ago-213,00%
sep-212,50%
oct-213,50%
nov-213,50%
Dec-212,50%
one-223,80%
feb-223,90%
mar-224,70%
Apr-226,70%
may-226,00%
June 225,30%
jul-225,30%
ago-225,30%
sep-225,30%
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Syndicate_Admin , with help from a date table you can have measure like, assuming inflation is the column

 

Rolling 12 = CALCULATE(Average(Table[inflation %]),DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-12,MONTH))

 

here 12 can be coming from a what if parameter

https://docs.microsoft.com/en-us/power-bi/desktop-what-if

Rolling Months Formula: https://youtu.be/GS5O4G81fww

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

I have the same interest. Were you able to solve it somehow? I can't find how to make it so that the user can opt for the base period in which inflation begins to accumulate. What I found in the forum only shows to calculate inflation for all rows of the table.

amitchandak
Super User
Super User

@Syndicate_Admin , with help from a date table you can have measure like, assuming inflation is the column

 

Rolling 12 = CALCULATE(Average(Table[inflation %]),DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-12,MONTH))

 

here 12 can be coming from a what if parameter

https://docs.microsoft.com/en-us/power-bi/desktop-what-if

Rolling Months Formula: https://youtu.be/GS5O4G81fww

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.