### PercentOfDistinctCount

Basic and Crystal syntax.

##### Overloads

- PercentOfDistinctCount (fld, condFld)
- PercentOfDistinctCount (fld, condFld, cond)
- PercentOfDistinctCount (fld, innerCondFld, outerCondFld)
- PercentOfDistinctCount (fld, innerCondFld, innerCond, outerCondFld)
- PercentOfDistinctCount (fld, innerCondFld, outerCondFld, outerCond)
- PercentOfDistinctCount (fld, innerCondFld, innerCond, outerCondFld, outerCond)

##### Arguments

- fld is a Number, Currency, String, Boolean, Date, Time or DateTime field that can be evaluated by the function.
- condFld is a field used to group the values in fld by.
- cond is a String indicating the type of grouping for condFld. You only specify this argument when condFld is a Date, Time, DateTime or Boolean field. For more information on the valid strings for this argument, see Conditions for summary functions.
- innerCondFld is a field used to group the values in fld by.
- innerCond is a String indicating the type of grouping for innerCondFld. You only specify this argument when innerCondFld is a Date, Time, DateTime or Boolean field. For more information on the valid strings for this argument, see Conditions for summary functions.
- outerCondFld is a field used to group the values in fld by.
- outerCond is a String indicating the type of grouping for outerCondFld. You only specify this argument when outerCondFld is a Date, Time, DateTime or Boolean field. For more information on the valid strings for this argument, see Conditions for summary functions.

##### Returns

Number value.

##### Action

PercentOfDistinctCount (fld, condFld) has the same effect as: 100 * DistinctCount (fld, condFld) / DistinctCount (fld). It expresses the distinct count of the values of the field fld for the group determined by condFld as a percentage of the distinct count of all the values of fld.

PercentOfDistinctCount (fld, condFld, cond) has the same effect as: 100 * DistinctCount (fld, condFld, cond) / DistinctCount (fld). The String argument cond expresses some additional information to precisely specify the grouping example: if condFld is a Date field, is the grouping "daily" or "weekly" or "monthly" etc.

PercentOfDistinctCount (fld, innerCondFld, outerCondFld) has the same effect as: 100 * DistinctCount (fld, innerCondFld) / DistinctCount (fld, outerCondFld). It expresses the distinct count of the values of the field fld for the group determined by innerCondFld as a percentage of the distinct count for the group determined by outerCondFld.

PercentOfDistinctCount (fld, innerCondFld, innerCond, outerCondFld) has the same effect as: 100 * DistinctCount (fld, innerCondFld, innerCond) / DistinctCount (fld, outerCondFld).

PercentOfDistinctCount (fld, innerCondFld, outerCondFld, outerCond) has the same effect as: 100 * DistinctCount (fld, innerCondFld) / DistinctCount (fld, outerCondFld, outerCond)

PercentOfDistinctCount (fld, innerCondFld, innerCond, outerCondFld, outerCond) has the same effect as: 100 * DistinctCount (fld, innerCondFld, innerCond) / DistinctCount (fld, outerCondFld, outerCond).

##### Comment

This function and other percentage functions are intended to support Percentage Summary fields. The groupings supplied as arguments must actually exist in the report for the summary function call to succeed.

Seagate Software, Inc. http://www.seagatesoftware.com Please send comments to: techpubs@seagatesoftware.com