inexperienced1
IS-IT--Management
I need some help with a report
Beloew is an idea of what I am trying to achieve
example Table design
key occurance date
100 1 01/01/02
100 2 01/02/02
100 3 01/03/02
100 4 01/04/02
101 1 01/01/02
101 2 01/02/02
101 3 01/04/02
Parameter field Dateto = 01/03/02
I need to return the max occurance row for each distinct key where the date <= the parameter field.
ie
100 3 01/03/02
101 2 01/02/02
I then need to work out where the Date is before the parameter field
ie
Before After
100 3 01/03/02 0 1
101 2 01/02/02 1 0
And then sum the results
Before After
100 3 01/03/02 0 1
101 2 01/02/02 1 0
1 1
I have tried to group the data and sum the grouped amounts, but this does not work.
I am a "first time" user of crystal so I am sure that an answer is out there.
Beloew is an idea of what I am trying to achieve
example Table design
key occurance date
100 1 01/01/02
100 2 01/02/02
100 3 01/03/02
100 4 01/04/02
101 1 01/01/02
101 2 01/02/02
101 3 01/04/02
Parameter field Dateto = 01/03/02
I need to return the max occurance row for each distinct key where the date <= the parameter field.
ie
100 3 01/03/02
101 2 01/02/02
I then need to work out where the Date is before the parameter field
ie
Before After
100 3 01/03/02 0 1
101 2 01/02/02 1 0
And then sum the results
Before After
100 3 01/03/02 0 1
101 2 01/02/02 1 0
1 1
I have tried to group the data and sum the grouped amounts, but this does not work.
I am a "first time" user of crystal so I am sure that an answer is out there.