cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
POWERBI_SBI
Regular Visitor

get accumulated from last 12 months foreach month

Hi Everybody!

 

First of all, thanks to read my issue and trying to solve it!

 

My problem is that I'm trying to create a measure that calculates the accumulated from the last 12 months foreach month.

That is because I'm trying to calculate the average of an amount, starting from the actual closed month. For example:

Today we are at the 3rd month (March), so we start at month 2 (next closed month is February):

- Month 2 (February): The sum of the months 2, 1 (2019), 12,11,10,9,8,7,6,5,4,3 (2018) / 12

- Month 1 (January): The sum of the months 1 (2019), 12,11,10,9,8,7,6,5,4,3,2 (2018) / 12

- Month 12 (December): The sum of the months 12,11,10,9,8,7,6,5,4,3,2,1 (2018) / 12

- ...

 

Could you please help me?

 

Thanks in advance!

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@POWERBI_SBI ,

 

You may view the code generated by Quick measure Running total and Rolling average.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@POWERBI_SBI ,

 

You may view the code generated by Quick measure Running total and Rolling average.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
May 23 2022 epsiode 5 without aka link.jpg

The Power BI Community Show

Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through June10th!

Power BI Dev Camp Session 22 without aka link and time 768x460.jpg

Check it Out!

Watch Session 22 Ted's Dev Camp along with past sessions!

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!

Top Kudoed Authors