Using a Subset During Creation of Many to Many Rules

The Subset rule for Many to Many match types enables you to match one or more transactions in a data source with all subset of transactions in another data source. The specified tolerance limit is applied to both the data sources.

Null values are included when creating a match with the Match Exactly rule condition.

Example 1: Many to Many with Subset Rule

Consider a match type that contains two data sources, with POS as the source system and Bank as the subsystem. The table below shows a limited set of transactions that are required for the purpose of this example.

Table 10-9 Source System Transactions

Transaction Id Store Id Transaction Date Amount
10001 7959 15-JUL-2021 983
20001 7959 14-JUL-2021 637
30001 7959 11-JUL-2021 288
40001 7959 10-JUL-2021 500
50001 7959 09-JUL-2021 818

Table 10-10 SubSystem Transactions

Transaction Id Store Id Transaction Date Amount
19999 7959 14-JUL-2021 -475
29999 7959 16-JUL-2021 2095
39999 7959 15-JUL-2021 -725

Notice that, although their dates are not an exact match, the transactions with Transaction Id 10001 and 20001 in the source system add up to an amount of 1620. The transactions with Transaction Id 19999 and 29999 in the subsystem add up to the same amount, 1620.

Consider the rule condition to match exactly with Amount and Store Id, anchor the Date, and then apply the specified tolerance limit on the Date. Assume that the specified tolerance is + or - 1 day. In our example, consider the first source system transaction dated 15-JUL-2021. If you use the Many to Many rule (without subset), the source system transactions that match the rule condition are Transaction Ids 10001 and 20001, whose amount adds up to 1620. In the subsystem, all transactions match the rule condition and their amounts add up to 895. This does not result in an exact match. However, when you use the Many to Many with Subset rule, all possible subsets of the subsystem transactions are created based on the specified match rules. This results in the subset with Transaction Ids 19999 and 29999 in the subsystem matching with Transaction Ids 10001 and 20001 in the source system.

Example: Many to Many with Subset Rule, using Business Calendar

Consider a match type that contains two data sources, with POS as the source system and Bank as the subsystem. The table below shows a limited set of transactions that are required for the purpose of this example.

Table 10-11 Source System Transactions

Transaction Id Store Id Transaction Date Amount
60001 7959 09-AUG-2024 818
40001 7959 10-AUG-2024 500
50001 7959 10-AUG-2024 501
30001 7959 11-AUG-2024 288
10001 7959 15-AUG-2024 983
20001 7959 19-AUG-2024 637

Table 10-12 Subsystem Transactions

Transaction Id Store Id Transaction Date Amount
19999 7959 15-AUG-2024 -475
29999 7959 19-AUG-2024 2095
39999 7959 19-AUG-2024 -725

Assume that the business calendar is being used and 16-Aug-2024 is a holiday. 17-Aug-2024 and 18-Aug-2024 is the weekend. You want to create a match rule with the following conditions:

  • Store Id matches exactly
  • Amount matches exactly
  • Transaction Date matches with a tolerance of +1 day.

Consider the source system transaction 10001, with date 15-Aug-2024. Because a business calendar is used, and a date tolerance of +1 day is acceptable, subsystem transactions with Transaction Date 19-Aug-2024 will satisfy the date tolerance rule. The following transactions add up to an Amount of 1620 and, therefore, are considered a match as per the rules defined above:

  • Source system transactions 100001 and 20001
  • Subsystem transactions 19999 and 29999