Formulas contain two critical parts: the components and the syntax. The components are the pieces that you add to create a formula while the syntax is the rules that you follow to organize the components.
Creating a formula in Seagate Crystal Reports is like creating one in any spreadsheet application. You can use any of the following components in your formula:
Example: {customer.CUSTOMER LAST NAME}, {customer.LAST YEAR'S SALES}
Example: "Quantity", ":", "your text"
Example: + (add), / (divide),
Operators are actions you can use in your formulas.
Functions perform calculations such as average, sum, and count. All functions available are listed with their arguments and are arranged by their use.
Example: "If" and "Select", "For" loops
Example: Average (fld, condFld), Sum (fld, condFld, "condition")
Group field values summarize a group. For example, you could use group field values to find the percentage of the grand total contributed by each group.
Example: {@GrossProfit}, {@QUOTA}
Seagate Software, Inc. http://www.seagatesoftware.com Please send comments to: techpubs@seagatesoftware.com |