Hi folks,
first of all: Sorry for my bad english. I try to explain myself as good as I can.
I am working on a small databench problem.
I have so far only a Customer table which shows me all the Sales of each customer and the sales date.
Now I want to create a query which shows me all the sales within a certain period.
I want to see all the sales until the last month and from 3years and one month ago on.
So if we are in February, the query shall show me all sales from Januar 2013 to January 2016.
I already have the formula for one of the conditions:
YEAR([SalesDate])*12+DatePart("m";[SalesDate]=YEAR(Date())*12+DatePart("m";Date())-1
It also works fine. If i put that formula into criteria than he shows me perfectly fine all the sales of January 2016.
Now I want to tell him to show me also the sales of earlier then January 2016 but i cannot use less or equal signs in the criteria fiel...
Does anyone have a solution to do it the proper way so it is showing me the sales until January 2016?
I dont want to use concrete and precise dates within the formula as we need it on a regular base and i do not want to update the formula each month.
I would be very glad for you help.
Kind regards,
Marcus