transformations:filter
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
transformations:filter [2021/04/25 14:00] – craigt | transformations:filter [2024/03/07 10:22] (current) – [Remarks] dmitry | ||
---|---|---|---|
Line 6: | Line 6: | ||
=====Description===== | =====Description===== | ||
This action calculates an [[syntax: | This action calculates an [[syntax: | ||
+ | |||
+ | If no rows satisfy the condition then all rows are removed.\\ | ||
The expression must be a valid condition -- it must return either TRUE or FALSE for any row in the table. If it results in a non-boolean value (i.e. not TRUE or FALSE) for at least one row it will cause a project execution error.\\ | The expression must be a valid condition -- it must return either TRUE or FALSE for any row in the table. If it results in a non-boolean value (i.e. not TRUE or FALSE) for at least one row it will cause a project execution error.\\ | ||
Line 22: | Line 24: | ||
\\ | \\ | ||
=====Remarks===== | =====Remarks===== | ||
- | **Examples of valid expressions:** | + | Examples of valid conditions: |
< | < | ||
- | | + | [Amount]=0 |
| | ||
- | | + | [Length] * [Width] * [Height] <= 1000 |
| | ||
- | | + | contains([City], |
| | ||
- | | + | not isempty([Email]) |
+ | |||
+ | [Date] >= #2024-02-01 and [Date] <= #2024-02-29 | ||
</ | </ | ||
- | If no rows satisfy the condition then all rows are removed.\\ | ||
\\ | \\ | ||
=====Examples===== | =====Examples===== | ||
- | **Objective:** Find all rivers that are longer than 6000 km.\\ | + | **Example:** Find all rivers that are longer than 6000 km.\\ |
**Source table:** The longest rivers in the world | **Source table:** The longest rivers in the world | ||
Line 54: | Line 57: | ||
\\ | \\ | ||
- | **Result:** | + | **Result |
^River | ^River | ||
| Nile | 6650| Africa | | Nile | 6650| Africa | ||
Line 60: | Line 63: | ||
| Yangtze | | Yangtze | ||
| Mississippi | | Mississippi | ||
+ | |||
+ | \\ | ||
+ | ====Community examples==== | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
\\ | \\ |
transformations/filter.txt · Last modified: 2024/03/07 10:22 by dmitry