SergeS
MIS
- Aug 14, 2002
- 28
Hi,
I am encountering the following issue.
In all of my source tables the actual data as well as the history date for that specific entity is kept. The most important attributes in those tables that tell if a specific record is valid at a certain point in time are 'effectivedate' and 'enddate'.
Endusers need to be able to generate reports with data that is valid at a certain date. So, I defined a prompt in my universe which asks the user to enter a date.
In my dimension objects I am using the entered date to select only those record which are valid at that date. This is working fine in some cases.
However, there are situations in which it isn't working. F.e.:
Imagine I have three tables: Division, Department and Employee. When I am producing a report with these three columns all figures are correct. The problem is showing up when I am using Division and Employee only.
The reason is that the generated SQl doesn't contain my defined condition on the dimension object Department. With respect to Department it is only using the joins Department - Division and Department Employee.
To get the right results it seems I have to created conditioned joins, comparing the effective dates and end dates with the entered date. This is not very elegant (neither is the generated SQL).
Does someone has an idea to handle this issue?
Thanks,
Serge
I am encountering the following issue.
In all of my source tables the actual data as well as the history date for that specific entity is kept. The most important attributes in those tables that tell if a specific record is valid at a certain point in time are 'effectivedate' and 'enddate'.
Endusers need to be able to generate reports with data that is valid at a certain date. So, I defined a prompt in my universe which asks the user to enter a date.
In my dimension objects I am using the entered date to select only those record which are valid at that date. This is working fine in some cases.
However, there are situations in which it isn't working. F.e.:
Imagine I have three tables: Division, Department and Employee. When I am producing a report with these three columns all figures are correct. The problem is showing up when I am using Division and Employee only.
The reason is that the generated SQl doesn't contain my defined condition on the dimension object Department. With respect to Department it is only using the joins Department - Division and Department Employee.
To get the right results it seems I have to created conditioned joins, comparing the effective dates and end dates with the entered date. This is not very elegant (neither is the generated SQL).
Does someone has an idea to handle this issue?
Thanks,
Serge