Crystal 2008
Oracle 9
Business Objects 3.1
In a subreport, I am retrieving TopN = 5 results for each Division (a group), based on the total count of all unique employee ids within each group that exist within a date range.
So, results look like this
Group Employee Total Count
A 500
B 400
C 300
D 200
E 100
Other 10
However, sometimes unique employees have a result in more than one group, e.g., Employee "a" is counted in the total for Group A, and is separately counted in the total for Group C. This is because two separate events occurred for that employee within the date range of the subreport.
In this instance, we wish to retrieve only the most recent date event for our subtotal employee counts, and suppress the earlier event date.
I've been testing maximum(table.date), but so far haven't resolved this one.
Thanks in advance for your suggestions!
-hms
Oracle 9
Business Objects 3.1
In a subreport, I am retrieving TopN = 5 results for each Division (a group), based on the total count of all unique employee ids within each group that exist within a date range.
So, results look like this
Group Employee Total Count
A 500
B 400
C 300
D 200
E 100
Other 10
However, sometimes unique employees have a result in more than one group, e.g., Employee "a" is counted in the total for Group A, and is separately counted in the total for Group C. This is because two separate events occurred for that employee within the date range of the subreport.
In this instance, we wish to retrieve only the most recent date event for our subtotal employee counts, and suppress the earlier event date.
I've been testing maximum(table.date), but so far haven't resolved this one.
Thanks in advance for your suggestions!
-hms