Calculating minimum, maximum, and average values on a Report’s field.

Question:

How can a report display the minimum, maximum, and average values of a field being stores in a Historic?

Solution:

To do so, follow these procedures:

  1. Set the report’s query to retrieve the desired field. For example: SELECT Historic.Current FROM Historic
  2. Create three Data Fields in the report with the following settings:

– Field Minimum:
SummaryFunc = 3-ddSFMin
SummaryGroup =
SummaryRunning = 0-ddsrNone
SummaryType = 1 – ddsmGrandTotal

– Field Maximum:
SummaryFunc = 4-ddSFMax
SummaryGroup =
SummaryRunning = 0-ddsrNone
SummaryType = 1 – ddsmGrandTotal

– Field Average:
SummaryFunc = 1-ddSFAvg
SummaryGroup =
SummaryRunning = 0-ddsrNone
SummaryType = 1 – ddsmGrandTotal

Set these object’s DataField properties with the name of the desired field, exactly as they appear in the SQL query.

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *