Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Interfaces based on Matching a Matched Source allow you to compare two sets of data and report the differences (mismatches).

In this example, let's you can compare positions for a specific entity and data source between two consecutive days, and output the rows for which the difference exceeded 1 %.

On this page

Table of Contents
Create interface with match source

Add a Matched Source

After

you  for

 for your interface and click Create, you see the EDS Worksheet.

The

The main Data Object you chose is at the left and the Taxonomy is at the right.

To add a match mashup to the current interface

, click on the plus sign in

:

  1. At the bottom of the

screen, and select "Matched Source" from the dropdown.

Image Removed

This action will add
  1. window, click Add Step Before optionImage Added Add Step Before, and then click Matched Source.

    Matched Source optionImage Added

    This action adds two more steps before the Taxonomy Mapping: Matched Source and Source Designer. In the Matched Sources Step box, you see a message asking if you want to continue to enable the Matched Source.

  2. Click Yes to continue. 
    You see the Match With Source grid on the right. And you see the options at the bottom of the window change to Matched Source > Source Designer > Taxonomy Mapping, where Matched Source is underlined.

Link the

fields

Fields

In the

Matching

Match With Source

Tab, let's

grid, you can now link the fields

we

you want to match

,

by using a drag-and-drop operation to drag a field from the main Data Object grid to a Match With Source grid field. 

To easily find the fields, you

need

can start typing the field name in the search box. The system filters the content of the grid

will be filtered

as you type.

Another

 Another useful option

could be

is to use the Mapped

/ Not mapped /

, Not Mapped, and Filtered tabs.

Image Removed
Fields Linked to Match With Source gridImage Added

The keys are different for different mashups. For example, the key for the SMF mashup contains Security Alias, for Generic Entity it is Entity ID, and so on.

To remove the link for a field,

delete

in the right Match With Source grid, delete the corresponding expression from

"

the Match With

"

column

in the right grid

. 

Provide

matching properties

To set matching parameters, expand the "properties" floating pane:

Image Removed

Matching Properties

Matching key expressions are mandatory fields. They tell the application which records to compare. 

In

our example we will be

this example, you are comparing records which belong to the same entity_id and security_alias.

 Therefore

 Therefore the Matching expression on both sides is |ENTITY_ID| + |SECURITY_ALIAS|

Autocomplete drop-down will list all the available variables as

.

To set matching parameters: 

  1. At the right side of the window, click Properties to expand the Properties floating pane.

    Properties paneImage Added
  2. Specify the value for the Left Key Expression and the Right Key Expression.
    As you start typing in the expression fields, the autocomplete drop-down lists all the available variables.

You may choose to include or exclude
  1. In this example, the Matching expression on both sides is |ENTITY_ID| + |SECURITY_ALIAS|

  2. In the Include Matches to Result check box, you can include matched records from the result dataset by selecting the corresponding check box.
    Otherwise, you can exclude matched records from the

resutl
  1. result dataset by

ticking
  1. clearing the corresponding

checkbox
  1. check box.

Also you may
  1. In the Common Float Tolerance box, you can provide the default tolerance for numeric fields

In our case
  1. .
    In this example, it is set to 0.02 = 2%.

  2. You can overwrite this default value by setting specific tolerances for each field in the

"
  1. Tolerance Diff

"
  1. column of the

right trid
  1. Match With Source grid.
    The records in the result set, for which the difference is less than specified in the tolerance, will be treated as matched.

Please note,

Note that the default name of the right data set is match_with.

We

You are going to use it later

,

when

we

you define filtering options for run time requests.

Mapping

Map in Source Designer

.

The Source

designer

Designer mode allows you to enrich your data with additional mashups, but for

our

example it is not necessary.

We are going to simply

In this example, you simply map all the fields to the Vocabulary.

To map all the fields to the Vocabulary:

  1. At the bottom of the window, click Source Designer.
    You see the CompositeSource base grid and the Vocabulary

For that, use "Select All Rows" context menu and then drag them Taxonomy Mapping
  1. grid. 

  2. In the CompositeSource base grid, right-click and then click Select All Rows.

    Select All Rows optionImage Added
  3. Drag the fields all at once to the destination grid.

Image Removed

Map the Taxonomy

The taxonomy mapping

will

for this example is mostly

be

straightforward as well.

We will

You just add one calculated

fields

field to see the actual absolute difference for the local market value.

The expression

is abs

used is:  abs(atof(|left_LOCAL_MARKET_VALUE|) - atof(|right_LOCAL_MARKET_VALUE|)) 

Notice

,

that atof() functions are necessary to convert the LOCAL_MARKET_VALUE to a number representation before making any math operations with them. This is because by default all the values are assumed to be character strings.

Image Removed
Taxonomy MappingImage Added

Run a Test

run

In the Run Time Request (RTR) message

we

, you have to provide the correct filtering options for the left and right data sets.

For both sides

we

in this example, you want to see values for same SN20 and same source - STARDIRECT,

but we'll

but you use different effective dates for the left and right sides

.Filtering parameters for

.

To run a test:

  1. On the Solution tab, in the Debug group, click Test Solution.
    You see the Run window, with the Task Parameters tab selected by default. 

  2. Specify the task parameter values.
    For both sides in this example, you want to see values for same SN20 and same source - STARDIRECT, but you use different effective dates for the left and right sides. The filtering Parameter Names for the right data set should be prefixed with the data set name, which is match_with by default

, while the parameters for
  1. . The parameter names for the left data set do not need any prefix.

Image Removed

After clicking Run button you can see the results:

Image Removed

  1. Task Parameters windowImage Added
  2. Click the Raw RTR tab to see how Run Time Request message will look.
    You will need this information when you are ready to run the interface from outside of the EDS tool.

  3. Click Run. 
    You can see the results, as follows. The M in the status fields means Match, and MIS means Mismatch.

    Image Added
  4. Click Close.