Function: @[INTERSECT]

The function @[INTERSECT(<set1>,<set2>,(<separator>))] returns the values that are present in dataset 1 and in dataset 2. The <separator> argument is optional.

Example:
@[INTERSECT(A;C;E,B;C;D;E)] returns C;E.

  • Arguments set1 and set2 can also be defined as attributes, placeholders or functions.
    Example:
    @[INTERSECT(#Global[Att1.EntireColumn.Name],#Global[Att2.EntireColumn.Name])]
  • If a separator is not specified, the default separator is a semi-colon (;).

    The comma (,) cannot be used as a separator in the datasets, because it is used as the separator between the function arguments.

If you insert the @INTERSECT function from the Create pattern window, the <separator> argument is wrapped in additional parentheses (()) to indicate that it is optional:
@[INTERSECT(<set1>,<set2>,(<separator>))]
You must remove these parentheses to use the argument.
Example:
@[INTERSECT(A|C|E,B|C|D|E,|)]

See also