Read more about Data Workbench’s End-of-life announcement.
A many-to-many dimension has a many-to-many relationship with its parent countable dimension.
You can think of a many-to-many dimension as a representation of a set of values for each element in its parent dimension. For example, the many-to-many dimension Search Phrase is a Session-level dimension (it has a parent of Session). It represents the set of search phrases associated with each session in the Session dimension. A single search phrase can be used in any number of sessions, and a single session can include zero or more search phrases. Therefore, the Search Phrase dimension has a many-to-many relationship with the Session dimension.
Many-to-many dimensions are defined by the following parameters:
Parameter | Description | Default |
---|---|---|
Name | Descriptive name of the dimension as it appears to the user in data workbench. The dimension name cannot include a hyphen (-). | |
Comments | Optional. Notes about the extended dimension. | |
Condition | The conditions under which the relationship between the parent and the input field's value should be created. | |
Hidden | Determines whether the dimension appears in the data workbench interface. By default, this parameter is set to false. If, for example, the dimension is to be used only as the basis of a metric, you can set this parameter to true to hide the dimension from the data workbench display. | false |
Input | The value that is related to the parent dimension (Parent). If this field is a vector of strings, then each element of the vector has its own relationship with the parent.
Note: If the input value for every log entry for an element of the parent dimension is empty, no element of the many-to-many dimension will relate to that element of the parent dimension. |
|
Parent | The name of the parent dimension. Any countable dimension can be a parent dimension. |
This example illustrates the definition of a many-to-many dimension using event data collected from website traffic. This many-to-many dimension, named “Selected Product,” relates sessions to the products purchased by the visitor during that session. The x-products field contains a vector of values, each of which is associated with a page view, which, in turn, is associated with a session.
By creating such a transformation, you can create a visualization in data workbench that depicts the relationship between the selected product dimension and the number of sessions that involve each of the products.