You can combine data from multiple Datamarts. Two types of joins are available:
-
Inner Join
-
Left Outer Join
-
Go to Analytics > Dashboard Manager > Queries.
-
Click New Query.
-
Click on the default Series (
S1) building block.
Default Series building block -
In the Source Data section:
-
Select Source from the drop-down menu.
Since the release of Paloma 17.1 the following Data Sources are supported.
-
Select Column or multiple Columns in Select Column(s).
No columns are preselected when you select the Source. You must explicitly select each column you want to include in the query. To use every column of the source, click Select all. Select only the columns that the query needs, because fetching all columns can slow the query down.
-
Select Currency.
Defines which currency the money data will be converted into.
Source Data settings for S1
-
-
Close the series setting section.
-
In the Building Blocks panel select Series.
-
Add the new Series (
S2) building block. -
Click on the default Series (
S2) building block.-
In the Source Data section:
-
Select Source from the drop-down menu.
-
Select Column or multiple Columns in Select Column(s).
-
Select Currency.
Source Data settings for S2
-
-
-
Close the series setting section.
Two Series building blocks -
In the Building Blocks panel select Join.
-
Add the Join (
J1) building block. -
Connect the Join (
J1) block with Series blocks (S1,S2).
Series building blocks connected to Join -
In the Join settings section:
-
Select the Join Type.
How rows from the two branches are combined. Inner Join keeps only rows that find a match on the other side. Left Outer Join also keeps every row from the left side that matches nothing. The right side's columns stay empty for those rows.
-
Inner Join
-
Left Outer Join
-
-
Select the Join Keys.
Rows are matched where these fields are equal on both sides. Only grouping fields (dimensions) can be used as keys. Add another key to make matches more specific.
Join Keys settings -
In Calculated fields section:
New columns computed with a formula over the joined columns. A calculated field is available downstream like any other column.
-
Click Add Calculated Field (Optional).
-
Define Calculated Field in Expression Editor.
-
Click OK.
-
-
In Output Fields section:
-
In the Select Fields drop-down define output fields for the Join block. (Optional)
Columns coming from the two joined series. By default every one of them is passed on. Select columns to pass on only those. A column left out stays available to calculated-field formulas.
-
-
Close the Join settings section.
-
-
Click + under the Join (
J1) building block. -
In the Add building block menu:
-
Select Output.
Add building block menu
-
-
Click Save.
-
In the Save Query menu:
-
Enter a Label.
Title used for display and translations.
-
Enter a Name.
Mandatory and unique identifier. Changing it can break dependencies. Prefer using the Label for naming visible to users.
-
In the Save to Folder section, select the folder where the query will be saved.
-
Click Save.
-
Example
In our example we are joining the following two Datamarts:
-
Testing Actin Data
-
Meatball Transaction DM
Field Selection
-
Testing Actin Data
-
Customer Id
-
Customer Class
-
Product Id
-
Quantity
-
-
Meatball Transaction DM
-
Country
-
Product Label
-