|
Creating Custom Reports
|
Previous Top Next |
| Add a calculation or function to the Chosen Field
|
|
|
| If you would like to show the difference between two or more fields (i.e. a calculated field), simply add the first field to the Fields Chosen list box and then select it in the Fields Chosen list box and click on the Edit button at the bottom of that list box. A dialog box will open where you may enter your calculation such as:
|
|
|
| ElapsedTime - AcceptableTime
|
|
|
| You may also add any functions compatible with Microsoft SQL Server 2000. For example, the DateDiff function displays the difference between two dates (in terms of number of days):
|
|
|
| DateDiff(dd,BOLDate,EventDate)
|
|
|
| Click the OK button
|
| Change the name of the field
|
|
|
| Double-click the name of the field in the Field Alias list box. A dialog box will open where you may modify the name of the field. This modified name or alias will display on the report as the title of the field.
|
| Change the size (width) of the field
|
|
|
| Double-click the size of the field in the Size list box. A dialog box will open where you may modify the size (in inches) of the field. Partial inches are allowed by using a decimal.
|
| Summarize the field
|
|
|
| Double-click the summary type in the Summary Type list box. A dialog box will open where you select a way to summarize the field. The summary types allowed are: Average (Avg), Count, Max (Maximum), Min (Minimum), Var (Variance), VarP (Variance for the population), StDev (Standard Deviation), StDevP (Standard Deviation for he population), Sum.
|
| (Railroad = 'UP' OR Railroad = 'BNSF') AND (EventDesc = 'Bad Order')
|