Skip to content

Filter on date range

Description

The Filter on Date Range activity allows you to filter records by evaluating whether values in a specific date column fall within a user-defined date range. This is useful for time-based slicing, such as extracting data for a specific week, month, quarter, or custom period.

You can configure whether to keep, remove, flag, or clear data based on whether the date falls within the defined range.

Use case:
This activity is useful in financial reporting, event-based filtering, log analysis, or seasonal trend extractions where date boundaries matter.


Input

TypeDescription
DataInput dataset containing at least one date column

Output

TypeDescription
Transformed DataFiltered, flagged, or modified dataset

Configuration Fields

Field NameRequiredDescription
ColumnYesColumn containing date values to apply the range filter.
Minimum ValueNoLower bound of the date range. Rows with dates earlier than this are excluded unless another action is selected.
Maximum ValueNoUpper bound of the date range. Rows with dates later than this are excluded unless another action is selected.
ActionsYesAction to perform:
  • Keep Matching Rows – Retain rows within the range
  • Remove Matching Rows – Remove rows within the range
  • Flag Rows – Add a flag column indicating if row matches
  • Clear Content of Matching Cells – Set matching cells to empty
  • Clear Content of Non-Matching Cells – Set non-matching cells to empty
Flag Rows Column NameConditionalName of the column to store flags (1 for match, 0 otherwise). Only shown when Action is Flag Rows.

Sample Input

date_columnvalue
2024-12-31100
2025-01-01200
2025-01-10300
2025-01-15400
2025-01-20500

Sample Configuration

FieldValue
Columndate_column
Minimum Value2025-01-01
Maximum Value2025-01-15
ActionKeep Matching Rows

Sample Output

date_columnvalue
2025-01-01200
2025-01-10300
2025-01-15400

Combine this activity with Extract Date Component to build filters for month, year, or quarter-based logic.