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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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