Build WHERE Clause
The WHERE clause editor, located at the bottom of the Data Source Editor, is used to filter the data loaded into the cube by applying SQL conditions. This filtering ensures only relevant records are processed during cube builds or refreshes, which can improve performance and reduce cube size.
Add a WHERE clause
- In the WHERE clause editor, click inside the text box.
- Type the SQL expression for your condition.
- Click the pencil icon on the right to open advanced settings with tools for building expressions.
- Use the available keywords, tables, or code helpers to complete your logic.
- Click Validate to check if the expression syntax is correct.
- Click Save.
- In the Options panel, select Save Data Source.
WHERE clause fields
| Field | Description |
|---|---|
| Script box | Text area for entering the SQL condition to filter cube data. |
| Code helpers | Tool buttons above the script editor that insert operators, brackets, or keywords quickly. |
| Scripts Keywords | Tabs that group building blocks for your expression:
|
| Tables | List of tables available in the data source to use in the script. |
| Others | Additional elements such as:
|
| Validate | Action that checks whether the script is correctly written and executable. |