Class Reference
IRIS for UNIX 2024.1.2
InterSystems: The power behind what matters   
Documentation  Search
  [USER] >  [%ZEN] >  [Report] >  [Aggregate] >  [CountDistinct]
Private  Storage   

deprecatedclass %ZEN.Report.Aggregate.CountDistinct extends %ZEN.Report.CustomAggregate

Aggregate for counting the number of distinct values in a set of data

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
2 2


Summary

Properties
Count Values accumIf class
escape excelFormula excelName excelNumberFormat
expression field fields filter
format ignoreNLS name postprocessResult
preprocessValue runtimeMode type uniqueId

Methods
%AddToSaveSet %ClassIsLatestVersion %ClassName %ConstructClone
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %Extends
%GetParameter %IsA %IsModified %New
%NormalizeObject %ObjectModified %OriginalNamespace %PackageName
%PostProcessValue %PreProcessValue %RemoveFromSaveSet %SerializeObject
%SetModified %ValidateObject GetResult ProcessValue
XMLDTD XMLExport XMLExportToStream XMLExportToString
XMLNew XMLSchema XMLSchemaNamespace XMLSchemaType
fieldIsValid nameIsValid


Properties

• property Count as %Integer [ InitialExpression = 0 ];
Running count of distinct values processed
• property Values as array of %String;
Array of values processed

Methods

• method GetResult() as %String
Return the count of distinct values processsed
• method ProcessValue(pValue As %String) as %Status
Processes each new value


Copyright (c) 2025 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.