Filter Data Using an Expression Filter
Using expression filters, you can define more complex filters using SQL expressions. Expression filters can reference zero or more data elements.
For example, you can create and apply the expression filter "Sample Sales"."Base Facts"."Revenue" < "Sample Sales"."Base Facts"."Target Revenue"
to see the items that didn’t achieve their target revenue.
You can use expression filters in the workbook filter bar to apply to a canvas or the whole workbook, or you can use one as a visualization filter to apply only to a single visualization.
You can also use a parameter in an expression filter's SQL expression, see Use a Parameter in an Expression Filter.
- On the Home page, hover over a workbook, click Actions, then select Open.
- For a workbook or canvas filter, on the filter bar, click Add Filter and then select Create Expression Filter.
- For a visualization filter:
- Click the visualization to select it.
- Click Grammar to open the Grammar pane, scroll to the Filters area, click Drop Target Options, and then select Create Expression Filter.
- In the Expression Filter panel, in the Label field, give the expression a name.
- In the Expression field, compose an expression.
- Click Validate to check if the syntax is correct.
- When the expression filter is valid, then click Apply.