>>>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.
>
>This doesn't count the groups. Report variables are calculated in the detail level.
>
>Vlad
Another similar solution would be to have a variable to keep the previous record's group expression value, then another one to increment by one if this variable is unequal to the actual group expression value. Needs some tweaking and fiddling, and paying close attention to order of creation of variables, but can be done.