Follow the Metric Recipe below to create the metric Contacts by Contact Owner from HubSpot Marketing.
1. Create the dataset
Navigate to the Datasets page and create a new Dataset for the selected source.
a) Create Contacts Dataset
Data Source
Views
Columns
HubSpot Marketing
Contacts
Contact owner
Create Date
b) Create Owners Dataset
Data Source
Views
Columns
HubSpot CRM
Owners
Id
FirstName
LastName
c) Create a new Calculated Column to combine FirstName and LastName
Edit the Owners Dataset and create a new calculated column by clicking on the + icon on the right side.
Insert the following function: CONCAT($FirstName, ' ', $LastName)
Rename the column to Full owner name.
Save the Dataset.
d) Merge Datasets together
Navigate to the Merged Datasets page and merge the Contacts Dataset with the Owners Dataset. Rename the Merged Dataset when done.
Datasets to merge
Matching column to join
Join Operator
Contacts Dataset
Contact owner
Left Join
Owners Dataset
Id
2. Create the Custom Metric
Navigate to Metric Builder and create a new Custom Metric by selecting the Merged Dataset you previously created.
Fill out the Measure, Date, Dimension, Aggregation, and Filter fields as shown in the diagram below.
Name your metric and save it.
Measure
Id
Date
Create Date
Dimension
Full owner name
Aggregation
COUNT
Filters
/