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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
mmills2018
Helper IV
Helper IV

Rolling 3 month calculation

Hello,

 

I have been using the below calculation for all of 2021.  I recentely refreshed my workbook with 2022 data.  The below calculation is no longer working and i am at a loss. All my data fields are the same and my date table does include January 2022 data and prior years/months of data.  It actually returns a result but only $ (due to calc annualizing by 4).

 

DATESINPERIOD('Date Table'[Date],LASTDATE(Snapshots[Data as of]),-3,MONTH))*4
1 REPLY 1
amitchandak
Super User
Super User

@mmills2018 , Try to use a date table and try

 

example

 

Rolling 3 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-3,MONTH))

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.