John Zelmer
Registered User.
- Local time
- Today, 21:46
- Joined
- May 13, 2015
- Messages
- 39
Dear forum members,
I need to make a report which shows the number of open orders (based on Orders fields Order 'Date Start' and 'Order Date End') per month, for 12 months (based on user input date). So, for example, the question is: how many orders were open (in progress) in september 2014. Kinda like recreating history.
I've looked at the crosstab solution of FMSINC but that only works if you're dealing with one date (for instance how many orders were closed).
I know how to make the desired calculation query for one month with 4 WHERE clauses:
- start before the month, ending in the month, OR
- start before the month, ending after the month or still open, OR
- start in the month, ending in the month, OR
- start in the month, ending after the month or still open
However, I can't figure out how to make a query that does the above but then for 12 months in one query.
Any ideas on what would be the easiest way to go about this?
Thanks,
John
I need to make a report which shows the number of open orders (based on Orders fields Order 'Date Start' and 'Order Date End') per month, for 12 months (based on user input date). So, for example, the question is: how many orders were open (in progress) in september 2014. Kinda like recreating history.
I've looked at the crosstab solution of FMSINC but that only works if you're dealing with one date (for instance how many orders were closed).
I know how to make the desired calculation query for one month with 4 WHERE clauses:
- start before the month, ending in the month, OR
- start before the month, ending after the month or still open, OR
- start in the month, ending in the month, OR
- start in the month, ending after the month or still open
However, I can't figure out how to make a query that does the above but then for 12 months in one query.
Any ideas on what would be the easiest way to go about this?
Thanks,
John