Crystal Reports for Eclipse Designer Guide

Percent operator

Crystal syntax.
Usage
x % y 
Calculates value x as a percentage of value y. That is (x/y) * 100.
Examples
The following examples are applicable to Crystal syntax:
{file.BALANCE OUTSTANDING} % {file.CREDIT LIMIT} 
Returns 30.00, where {file.BALANCE OUTSTANDING} = $1500 and {file.CREDIT LIMIT} = $5000.
{file.AMOUNT} % {file.CREDIT LIMIT}
Returns 32.26, where {file.AMOUNT} = 2257.87 and {file.CREDIT LIMIT} = 7000.

Note: If the denominator equals 0, the report will be halted with a divide by zero protection. If you want to avoid this type of problem, you should put a test in.
If {file.FORECAST} = 0 Then
     0
Else
     {file.SALES} % {file.FORECAST}



SAP BusinessObjects
http://www.sap.com/sapbusinessobjects/
Support services
http://service.sap.com/bosap-support/
Product Documentation on the Web
http://help.sap.com/