Type Alias BreakdownConditionFilter

Condition-based filtering configuration. Supports single comparisons (>, >=, <, <=) and range comparisons (> <, >= <=).

Single Comparisons:

  • Compare type: Uses value (Fixed) or aggregation+field (Calculated)
  • General type: Uses aggregation+field and either value (Fixed) or aggregation2+field2 (Calculated)

Range Comparisons (> < or >= <=):

  • Compare type: Uses fromValue+toValue (Fixed) or fromAggregation+fromField+toAggregation+toField (Calculated)
  • General type: Uses aggregation+field plus either fromValue+toValue (Fixed) or fromAggregation+fromField+toAggregation+toField (Calculated)
type BreakdownConditionFilter = {
    aggregation?: AggregationType;
    aggregation2?: AggregationType;
    comparisonType: ComparisonType;
    conditionType: ConditionType;
    field?: string;
    field2?: string;
    fromAggregation?: AggregationType;
    fromField?: string;
    fromValue?: number;
    toAggregation?: AggregationType;
    toField?: string;
    toValue?: number;
    value?: number;
    valueType?: ValueType;
}
Index
aggregation?: AggregationType

Aggregation operation type

aggregation2?: AggregationType

Aggregation operation type

comparisonType: ComparisonType

Comparison operation type

conditionType: ConditionType

Condition evaluation type

field?: string

Primary field for calculated values

field2?: string

Additional field used only by General.Calculated for single comparisons

fromAggregation?: AggregationType

Aggregation operation type

fromField?: string

Lower bound field for range comparisons with Calculated value type (used with > < or >= <=)

fromValue?: number

Lower bound value for range comparisons with Fixed value type (used with > < or >= <=)

toAggregation?: AggregationType

Aggregation operation type

toField?: string

Upper bound field for range comparisons with Calculated value type (used with > < or >= <=)

toValue?: number

Upper bound value for range comparisons with Fixed value type (used with > < or >= <=)

value?: number

Fixed numeric value (used by single comparisons with Compare.Fixed and General.Fixed)

valueType?: ValueType

Whether the value is calculated or fixed