Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

PY Calculation based on DATEADD field is Not Working

Hi, 

 

I have a these 2 columns in my table:

 

Entry Date

Total Sales

 

I created a PY Entry date field using: DateAdd('Sales'[Entry Date], -364, DAY)

I am trying to create a column that shows the total sales for the PY based on the new date field.

 

I am using the column calculation: CALCULATE(SUM('Sales'[Total Sales]),DATEADD('Sales'[Entry Date], -364, DAY))

 

But it is showing blank values. 

 

Any help?

3 Replies