User Tools

Site Tools


transformations:crossmerge

CROSS MERGE

Category: Transform / Advanced


Description

This action creates a table with all possible combinations (i.e. Cartesian product) of rows in two tables.


Use cases

Cross Merge can be helpful in a number of cases:

  • Generating a custom calendar
  • Performing a complex merging/matching, where all possible combinations are later filtered using a complex condition.


Action settings

SettingDescription
Merge tableSelect the table to merge with the current dataset.
ColumnsSelect whether to merge all columns in the second dataset, or just selected columns. Options: All columns or
Selected columns (choose which columns to include in the merge).

The reference to the second table will appear as a dotted line connecting this action to the second dataset in the application window.


Remarks

This action can produce extremely large tables, so make sure that you’re not cross-merging large tables. To estimate the number of rows in the resulting table, multiply the number of rows in both source datasets.

EasyMorph can handle tables with up to 536 million records only.


Examples

Example #1

Create a custom calendar that includes quarters 2 and 4 in the years 2016 and 2017.

Before (source table)

Table 1: Years

Year
2016
2107

Table 2: Quarters 2 and 4

Quarter
Q2
Q4

After (result table)

Year Quarter
2016Q2
2016Q4
2017Q2
2017Q4

Action parameters

Merge table: "Quarters"
All columns


Community examples


See also

transformations/crossmerge.txt · Last modified: 2025/01/15 18:04 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki