Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grouping in the report designer
Message
 
To
17/08/1999 09:01:00
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00254228
Message ID:
00255472
Views:
18
Sanjay,
Yes it's clear what you wish to do. What you need is a variable that totals ONLY for specific code values. For example:

Code1Var = iif(code=1, Hours, 0)

When you sum this variable at the group level it should add ONLY the code=1 values. You'd have to make a variable for each code type, of course.

HTH
Barbara

>Thanks for your reply. I hope this example of the report I am trying to produce makes it clearer.
>
>EMPLOYEE 1
>
>DATE,            HOURS,      CODE,       ACCOUNT NO.
>1/1/1999,         10,         1,          123456
>1/1/1999,         15,         2,          789123
>1/2/1999,         05,         1,          123456
>1/3/1999,         20,         3,          123456
>1/4/1999,         10,         3,          123456
>
>TOTALS:
>                 15,         1,          123456
>                 15,         2,          789123
>                 30,         3,          123456
>
>EMPLOYEE 2........
>
>
>The TOTALS are based on groupings on the CODE field. The number of CODEs can vary depending on user selection of the date range. I am try to put the TOTALS values on the report:
>TOTALS:
>                 15,         1,          123456
>                 15,         2,          789123
>                 30,         3,          123456
>
>Thanks in advance
>
>Sanjay
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform