{{sidenavigation.sidenavigationExpandLabel}}
{{getMsg('Help_YouAreHere')}}: {{page.title}} {{page.title}}
{{$root.getMsg("downLoadHelpAsPdf")}} {{helpModel.downloadHelpPdfDataStatus}}

PercentOfDistinctCount

Returns the percentage part of this record from the condition of the distinct count.

Usage:

PercentOfDistinctCount( fld, condFld )
PercentOfDistinctCount( fld, condFld, cond )

Parameters:

fld The name of a field or array variable whose values should be used to calculate the percentage value.
condFld The name of the field that groups the values of fld (if fld isn't an array).
cond A string declaring the type of grouping to be used on condFld. This only makes sense for groups based on Date, DateTime, Time, and Boolean fields. See Summary Field Conditions for a list of strings you can use here.

Returns:

A fractional number.

Examples:

PercentOfDistinctCount({Product.Unit_Price}, {Product.Category})
// returns the percentage part from the condition of the distinct count
// of the unit price of a given product category.

Notes:

  • If the values in fld should be grouped, a group based on condFld is needed. If the group does not exist in the report, you can add it using i-net Designer or using API method: Engine.addGroup.

See also:

i-net Clear Reports
This application uses cookies to allow login. By continuing to use this application, you agree to the use of cookies.


Help - PercentOfDistinctCount