cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
POWERBI_SBI Visitor
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

Accepted Solutions
Community Support Team
Community Support Team

Re: get accumulated from last 12 months foreach month

@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.
1 REPLY 1
Community Support Team
Community Support Team

Re: get accumulated from last 12 months foreach month

@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.