We have a scenario where we have user data sorted by MONTHID and INSERTDATE which illustrates supervisor hierarchy as of that change date.
Example:
MONTHID INSERTDATE USERID NAME SUPERVISOR
200401 1/1/2004 X123 SMITH JILL JONES
200401 1/15/2004 X123 SMITH BETTY SMITH
Above sample shows supervisor change occuring mid-month.
We need to extract the maximum insert date PER MONTH PER USER and use that as a baseline to then group for further reporting.
The supervisor structure is 5 levels, and although the original sort must be for individual user to gain the maximum, the ultimate grouping must be top down. (Region, VP, Manager, Supervisor, User).
We have no funding for database enhancements, so a boolean flag on MAX date is out. We need to find a strictly Crystal Reporting solution to our dilemna.
Any ideas?
Example:
MONTHID INSERTDATE USERID NAME SUPERVISOR
200401 1/1/2004 X123 SMITH JILL JONES
200401 1/15/2004 X123 SMITH BETTY SMITH
Above sample shows supervisor change occuring mid-month.
We need to extract the maximum insert date PER MONTH PER USER and use that as a baseline to then group for further reporting.
The supervisor structure is 5 levels, and although the original sort must be for individual user to gain the maximum, the ultimate grouping must be top down. (Region, VP, Manager, Supervisor, User).
We have no funding for database enhancements, so a boolean flag on MAX date is out. We need to find a strictly Crystal Reporting solution to our dilemna.
Any ideas?