Skip to main content

Supported operators for view filters

The table below lists the operators/functions that can be used to define view filters when you are creating reports and cube instances with REST APIs (sometimes referred to as JSON Data API).

Code samples are provided to illustrate how to use some of these operators. For operators without code samples, you can use the samples that are provided as a model for how to write your own code.

Attributes

The following are the supported operators for attributes.

OperatorFunction AliasDescription
Attribute elementInIn list
NotInNot in list
Attribute form [ID / DESC]Equals=Exactly
NotEqual!=Different from
Greater>Greater than
Less<Less than
GreaterEqual>=Greater than or equal to
LessEqual<=Less than or equal to
BetweenBetween
NotBetweenNot between
IsNullnullIs null
IsNotNullnotnullIs not null
Attribute form [DESC]Like
NotLike
Contains
NotContains
BeginsWith
NotBeginsWith
EndsWith
NotEndsWith

Metrics

The following are the supported operators for metrics.

OperatorFunction Alias
Basic functionEquals=
NotEqual!=
Greater>
Less<
GreaterEqual>=
LessEqual<=
Between
NotBetween
IsNullnull
IsNotNullnotnull
Rank [descending order]Rank.Equals
Rank.DifferentFrom
Rank.Between
Rank.NotBetween
Rank.Top
Rank.Bottom
Rank.ExcludeTop
Rank.ExcludeBottom
Percent [descending order]Percent.Equals
Percent.DifferentFrom
Percent.Between
Percent.NotBetween
Percent.Top
Percent.Bottom
Percent.ExcludeTop
Percent.ExcludeBottom