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
Chinoos
Helper I
Helper I

Rolling 12 months sum for completed months

 

I'm struggling to get rolling 12 months for the months that are completed. For example; For the current month the value should display Zero and for the completed months it should display rolling 12 months values. For 2016-Dec the value=sum(2016-Jan till 2016-Dec), 2016-Nov=sum(2015-Dec till 2016-Nov)

 

 

YearMonthValue
20168985193929.9
20169985428542.2
201610985365989.1
201611992519096.7
201612980109375.8
201710

 

Please suggest any idea, if you have come across the same

1 ACCEPTED SOLUTION
v-sihou-msft
Employee
Employee

@Chinoos

 

I assum you already have your table link to another full calendar table. You can try formula like below:

 

[Rolling 12 months total value] =
CALCULATE(Table[value], 
          DATESINPERIOD(Calendar[Date], 
                        LASTDATE(Calendar[Date]),-12, Month
                       )
         )

Regards,

 

View solution in original post

2 REPLIES 2
v-sihou-msft
Employee
Employee

@Chinoos

 

I assum you already have your table link to another full calendar table. You can try formula like below:

 

[Rolling 12 months total value] =
CALCULATE(Table[value], 
          DATESINPERIOD(Calendar[Date], 
                        LASTDATE(Calendar[Date]),-12, Month
                       )
         )

Regards,

 

PavelR
Solution Specialist
Solution Specialist

@Chinoos I recommend this post on SQLBI.

 

Regards.

Pavel

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.

Top Solution Authors
Top Kudoed Authors