When analyzing your data, it is beneficial to consolidate data from different sources. Want to group revenue by acquisition source, linking data from your orders table and Google Analytics? Or how about grouping revenue by customer gender, or joining a customer attribute to transaction data for segmentation?
This guide teaches you how to do just that. Before getting started, Adobe recommends that you check out the Calculated Column Types Guide. The Calculated Column Types Guide outlines the types of columns that you can create in the Data Warehouse Manager, along with their definitions and examples.
To get started, click Manage Data > Data Warehouse in the sidebar.
Click the table that you want to create a column in. For example, if you wanted to create a Customer Gender
column for revenue segmentation, you would select the sales_flat_order
table.
The table scheme displays. Click Create New Column.
Give your column a name - for example, Customer Gender
.
Select the definition for the column. This is where the Calculated Column Types guide comes in handy!
For certain types of columns, a little more info is needed to properly create the column:
One to Many
(joined) and Many to One
(aggregate) columns, you need to select the tables and columns.Same Table calculation
, you need to select the desired date field from the dropdown.If you are creating a One to Many
(joined) or Many to One
(aggregate) column, you need to select a pathway to connect the two tables. In this step, you can either use an existing path or create a one.
Remember to properly define the table as either many or one!
That is it! Your new column appears in the current table with a Pending
status. After the next update completes, your column will be available for use in metrics and reports.
If you are having a little trouble remembering what all the inputs are when creating a calculated column, try keeping this reference map handy when you are building: