Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variable to count distinct number?
Message
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01529049
Message ID:
01529073
Views:
44
>>>>Hi,
>>>>
>>>>I need to create a variable in a report that will count the number of distinct values. For example, if the report has a column EMPLOYEE_ID the variable should count how many employees are in the report. How? I tried to enter in the value to store "DISTINCT( EMPLOYEE_ID )" but it gives me error. TIA for any help.
>>>
>>>This is not simple using report variables. I suggest to add this field as pre-calculated in the Report.
>>
>>You mean to calculate the value before calling REPORT FORM? This is what I thought too. Thank you.
>
>Yes, this is what I mean. I believe it's much simpler approach.

Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform