All, happy thanksgiving and thanks in advance.
Attached is a data for this question. The requirement is to project monthly income for a user-selected From/To date.
In the attached Database there are 3 tables:
Assignments: This is the source data I have to work with. Fields descriptions in the table will tell what each is used for. The query result I need will turn those dates into a date series, with the InvoiceRate value listed for every month end between the Assignment’s start and end dates. The user will pick a From and To date range to run the query for and any Assignments with Start and End dates within the From/To range will be listed. E.g. if From = 3/31 and To = 6/30 only Assignments 1 & 3 will have results, since Assignment #2 is only in January.
SampleQueryResult_Option1: Is an example of how the query output could look. This one assumes the query is smart enough to only list the dates between Start and End. In the example From = 1/31/15, To = 12/31/15.
SampleQueryResult_Option2: Is a second option of how the query output could look. In the example From = 1/31/15, To = 12/31/15 and therefore some of the periods will show InvoiceRate = 0 since they are out of the Start and End date range.
I’ve tried a few things and cannot get this to work. Thanks again for your help.
Attached is a data for this question. The requirement is to project monthly income for a user-selected From/To date.
In the attached Database there are 3 tables:
Assignments: This is the source data I have to work with. Fields descriptions in the table will tell what each is used for. The query result I need will turn those dates into a date series, with the InvoiceRate value listed for every month end between the Assignment’s start and end dates. The user will pick a From and To date range to run the query for and any Assignments with Start and End dates within the From/To range will be listed. E.g. if From = 3/31 and To = 6/30 only Assignments 1 & 3 will have results, since Assignment #2 is only in January.
SampleQueryResult_Option1: Is an example of how the query output could look. This one assumes the query is smart enough to only list the dates between Start and End. In the example From = 1/31/15, To = 12/31/15.
SampleQueryResult_Option2: Is a second option of how the query output could look. In the example From = 1/31/15, To = 12/31/15 and therefore some of the periods will show InvoiceRate = 0 since they are out of the Start and End date range.
I’ve tried a few things and cannot get this to work. Thanks again for your help.