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

Last year sameday

Hi ,

We need to copmare last year same day sales like..

Yesterday = 6/9/2016 = Thrusday (2nd week)

Last year sameday = 6/11/2015 =  Thrusday (2nd Week)

Thanks..

2 Replies
MK_QSL
MVP
MVP

You can simply subtract 52 * 7 = 364.

So,

Date(Date#('6/9/2016','M/D/YYYY')-364) as YourRequiredField

or

Date(Date#(YourDateField,'M/D/YYYY')-364) as YourRequiredField

Anonymous
Not applicable

Hi nareshthavidishetty,

Use function AddMonths:

Addmonths('6/9/2016',-12)='6/9/2015'


Regards!!