Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Number of groups
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00101101
Message ID:
00102938
Views:
28
>>>>I have a report with data grouping.
>>>>How can I count the number of the groups?
>>>>Thank you.
>>>
>>>add a variable to the report, set to count, reset at desired group.
>>
>>I don't want to count the number of records in one group bot the number of different groups in the whole report.
>
>
>I found the solution.
>We have to create two variables N1 and N2 with these parameters:
>
>
> N1 N2
>__________________________________________________________________
>Value to store: 0 iif(N1=1,1,0)
>Initial value: 0 0
>Reset at: "name of the group" End of Report
>Calculate: Count Sum
>__________________________________________________________________
>
>Variable N2 is what we need.
>
>
>Interesting, isn't it.

And check Vlad Tatavu's solution using a public variable, too, from earlier in the thread.
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform