Sort, filter, and skip records with conditions

Records sorted and filtered before merge

You don’t want every record, in any order – you want to choose which ones run, and handle the awkward ones. DataMergeStudio shapes the set before the merge and lets you branch per record.

Sort and filter your data

In the Datasource sidebar menu, turn on Filter and/or Sorting. This shapes the data set before it reaches the editor.

  • Filter is an Condition-Editor that knows all your columns – so you can keep, for example, only the records whose “Name” (column) starts with “F”.
  • Sorting lets you add as many entries as you like. Each entry picks a data column and a direction – ascending or descending. Sorts apply in order, top to bottom: the first entry is the primary sort, the next breaks ties, and so on.

📷 Screenshot [NEU]: the Datasource Filter and Sorting panels

Tip: in the preview, turn on Consider filter settings to step through only the filtered records.

The preview with the Consider filter settings option

Branch records with a condition

Within the records that run, a condition node evaluates each record and routes it down its true / false outputs – use it to switch content or handle edge cases. When there are several cases to tell apart, use dynamic conditions.

A condition can’t skip a whole record: the central node needs data for every record it processes and reports an error if it receives none. To leave records out entirely, exclude them with the filter above or an export record range below.

📷 Screenshot [NEU]: a condition node branching records by a rule

Narrow related rows

If a record shows related rows (a master-detail list), limit which ones appear with a data group filter on the Data Group node – see Show a list within a record.

Export only a slice

To produce just part of the set in one run, set a record range under Export → Records.

📷 Screenshot [NEU]: the record range under Export → Records

Result

The merge runs on exactly the records you want, in the order you want, with edge cases handled.

Related

Not found what you're looking for?

How-To Guides · Last updated 1 month ago

Copyright ToolboxCode UG