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
pokdbz
Helper II
Helper II

Last Year then Aggregate DAX help

I need assistance for how to create a measure that Looksback 364 days then does an aggregate of the previous 364 days on Custom Calendar Dimension.I created the measures separately but I'm unsure how to combine them, or if it  needs written a different way.

 

Sales Last Year:= CALCULATE([Sales],DATEADD('Calendar - Fiscal'[Date],-364,DAY))
Sales 364 day Agg:= CALCULATE ( [Sales], DATESINPERIOD ( 'Calendar - Fiscal'[Date], LASTDATE ( 'Calendar - Fiscal'[Date] ), -364, DAY ) )

 

Below is an example of the data I want to lookback on then aggregate.  Any help would be appreciated.

Example

0 REPLIES 0

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