Katya85S
Programmer
- Jul 19, 2004
- 190
Crystal report (8.5) runs out of stored procedure. It has a numeric ‘RecType’ field. The report should count percentage of RecType=0 against total number of records.
I thought I could assign to a variable (let’s say @Type0s) something like
COUNT(*) WHERE RecType=0 in the SQL Expression Fields. And then calculate the percentage of the variable @Type0s out of total number of records (Count(*), etc.)
But since the report uses stored procedure as data source, the SQL Expression Fields is not an available option of the ‘Field Explorer’ window. Any ideas on how to find the percent of records, WHERE RecType=0 in my situation?
Thank you all in advance
I thought I could assign to a variable (let’s say @Type0s) something like
COUNT(*) WHERE RecType=0 in the SQL Expression Fields. And then calculate the percentage of the variable @Type0s out of total number of records (Count(*), etc.)
But since the report uses stored procedure as data source, the SQL Expression Fields is not an available option of the ‘Field Explorer’ window. Any ideas on how to find the percent of records, WHERE RecType=0 in my situation?
Thank you all in advance