Class Reference
%ZEN.Report.Aggregate.Mode
Server:appadmin-00044-deployment-6bf4cbc86d-9f4xc
Instance:IRIS
User:SuperUser
 
-
  [USER] >  [%ZEN] >  [Report] >  [Aggregate] >  [Mode]
Private  Storage

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

Aggregate for computing the statistical mode (most frequent observation) of a set of data

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
3 3


Summary

Properties
Counts MaxCount MaxCountValues 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 Counts as array of %Integer [ InitialExpression = 0 ];
Number of observations indexed by value
• property MaxCount as %Integer [ InitialExpression = 0 ];
Largest count seen so far
• property MaxCountValues as %String;
List of values that have occured MaxCount times.

Methods

• classmethod %PostProcessValue(result As %String, postprocessResult As %Boolean, runtimeMode As %Integer, ignoreNLS As %Boolean)
• method GetResult() as %String
Returns the mode of the data set. If the data set was empty, "" is returned. If there is no unique mode, the number of values occurring most frequently is returned, as well as how many times these values occurred.
• 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.