Hello everyone,
I have a query that pulls current year, month, and Quarter to date totals. I would like to compare each to the same time frame from the previous year.
So if today is August 16, I want a comparative for everything up to August 16th last year.
The formula I came up with works for some records but for others the total ends up being way bigger than the total of everything in the database.
this is the formula I was using
LYValue: Sum(IIf([PODate]<=DateSerial(Year(Date())-1,Month(Date()),Day(Date())),[USValue],0))
Please let me know if I need any further explination, this is my first time posting. I have always been able to search and find an answer on here...not so this time.
Thanks so much!
I have a query that pulls current year, month, and Quarter to date totals. I would like to compare each to the same time frame from the previous year.
So if today is August 16, I want a comparative for everything up to August 16th last year.
The formula I came up with works for some records but for others the total ends up being way bigger than the total of everything in the database.
this is the formula I was using
LYValue: Sum(IIf([PODate]<=DateSerial(Year(Date())-1,Month(Date()),Day(Date())),[USValue],0))
Please let me know if I need any further explination, this is my first time posting. I have always been able to search and find an answer on here...not so this time.
Thanks so much!
