Hi Everyone, I need help !
I have the following records in a table:
GlAccont Rating Ratingdate
1111 4 22-JAN-2003
1111 3 13-FEB-2003
1111 4 05-MAY-2003
1111 2 06-JUL-2003
2222 3 12-DEC-2002
2222 2 07-MAY-2003
2222 4 07-JUL-2003
2222 1 08-JUL-2003
I want to group my records by GlAccount , and show the rating values for each of the last 7 months and sum the ratings per month.
If the is no records in the actual month the most recent Rating value for the GlAccount shall be shown.
ex. for GlAccount 1111 there is not a record for APR-2003 and therefore the rating for 13-FEB-2003 shall appear in the column for APR-2003.
Report output:
Rating
Glaccount JAN-03 FEB-03 MAR-03 APR-03 MAY-03 JUN-03 JUL-03
1111 4 3 3 3 4 4 2
2222 3 3 3 3 2 2 1
----------------------------------------------------------
Sum 7 6 6 6 6 6 3
Is that possible? I am using CRW 8.5 / 9. Thanks in advance, sbf-kla
I have the following records in a table:
GlAccont Rating Ratingdate
1111 4 22-JAN-2003
1111 3 13-FEB-2003
1111 4 05-MAY-2003
1111 2 06-JUL-2003
2222 3 12-DEC-2002
2222 2 07-MAY-2003
2222 4 07-JUL-2003
2222 1 08-JUL-2003
I want to group my records by GlAccount , and show the rating values for each of the last 7 months and sum the ratings per month.
If the is no records in the actual month the most recent Rating value for the GlAccount shall be shown.
ex. for GlAccount 1111 there is not a record for APR-2003 and therefore the rating for 13-FEB-2003 shall appear in the column for APR-2003.
Report output:
Rating
Glaccount JAN-03 FEB-03 MAR-03 APR-03 MAY-03 JUN-03 JUL-03
1111 4 3 3 3 4 4 2
2222 3 3 3 3 2 2 1
----------------------------------------------------------
Sum 7 6 6 6 6 6 3
Is that possible? I am using CRW 8.5 / 9. Thanks in advance, sbf-kla