Skip to main content
Defines a filter that Omni applies inside the subquery of each mapped topic. Use a shared filter when one user choice, such as a currency or a timeframe, must reach each topic. Each topic maps the shared filter to one of its own fields.

Syntax

Set shared_filters at the top level of a .composite_topic file.

Properties

object
A map of shared filter definitions, keyed by the filter’s name. Use the name to reference the filter, for example in default_filters.

Examples

Currency selector across topics

In this example, the orders and campaigns views each have a currency filter-only field:
Filter-only field in each view
Currency selector shared across topics
When a user sets Currency to EUR in a workbook, Omni applies EUR to orders.currency in the orders subquery and to campaigns.currency in the marketing subquery.

Timeframe filter on some topics

In this example, the composite has three topics and the shared filter maps two of them to a date dimension. type sets the filter’s type explicitly.
Timeframe filter mapped to two of three topics
support_topic doesn’t have a mapping. A query that filters on Activity window and selects fields from support_topic will return an error.