Follow the Metric Recipe below to create the custom metrics using Leads object.
1. Create the dataset
Navigate to the Datasets page and create a new Dataset using HubSpot CRM.
a) Create a Leads Object Dataset
Data Source
Views
Columns
HubSpot CRM
Leads
Date Entered "New"
Date Entered "Qualified"
Other stages you use for qualified leads like SQL..
b) Create a Calculated Column
Edit the dataset and click + in the right side to create a Calculated Column.
Use this formula:
abs(datediff($Date_entered_Qualified_Lead_pipeline,$Date_entered_New_Lead_pipeline,day))
ABS(number) - Returns the absolute (non-negative) value of number.
DATEDIFF(start_date, end_date, unit) - Returns the number of unit intervals (e.g., 'day', 'month') between start_date and end_date.
Rename the column to "Time to Qualified"
2. Create the Custom Metric
Navigate to Metric Builder and create a new Custom Metric by selecting the 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
Time to Qualified
Date
Date Entered Qualified
Dimension
/
Aggregation
AVG
Filters
/