×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Annual Report

Annual Report

Annual Report

(OP)
Can anyone help me with creating an annual report.
I have now quarterly reports based on some set of dates it gives me number of records affected for some where clause.
DEFINE FILE MYFILE
BEGinDATE/YYMD DFC 20 YRT 00='&Begin_date';
ENDDATE/YYMD DFC 20 YRT 00='&End_date';
KOUNT1/D12=IF
(SOMEFIELD1 GE BEGINDATE) AND
(SOMEFIELD1 LE ENDDATE) THEN 1
          ELSE 0;
KOUNT2/D12=IF SOMEFIELD2 GE BEGINDATE
 AND SOMEFIELD2 LE ENDDATE
AND SOMETHINGELSE EQ 'somevalue' THEN 1
          ELSE 0;
END
TABLE FILE MYFILE
SUM
    KOUNT1 AS 'DISPLAY1' OVER
    KOUNT2 AS 'DISPLAY2'
END.
The generated report is
     display1  (value1)
     display2  (value2)
how do I create an annual report with all same counts but for 4 different quarters. Any ideas would be greatly appreciated.
I am looking forward to create a report as follows
           Qtr1        Qtr2       Qtr3      Qtr4
display1   value11     value12    value13   value14
display2   value21     value22    value24   value24

Thanks a bunch.
-P

RE: Annual Report

Define a field for quarter (1-4) and add;

ACROSS quarter

to your report.

RE: Annual Report

(OP)
Thank you! It works !
-P

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close