I'm very new to universe design and would really appreciate a point in the right direction...
I have a table Sales that records details of sales made by staff members. It includes the following fields:
- SaleID
- StaffID
- SaleDate
I also have a table StaffDepts that has the historic department information for each member of staff:
- StaffID
- DeptName
- StartDate
- EndDate
I would like to build a universe that pulls through the name of the department in which the member of staff was placed on the date of the sale.
I tried linking the two tables with three joins in Designer (I amended the Expression box in the Edit Join window of each join):
- Sales.StaffID = StaffDepts.StaffID
- StaffDepts.StartDate <= Sales.SaleDate
- (StaffDepts.EndDate IS NULL) OR (StaffDepts.EndDate > Sales.SalesDate)
This failed pretty spectacularly! Can any suggest how I can achieve what I am trying to do?!
Many thanks!