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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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