This week we will see how to create a performance report for each sales agent, based on your CRM data. This will help you monitor your team productivity, and identify your top and under performers.
To create the Team Performance report, you need to create the following Query Tables.
This Query Table obtains information on the date of subscription for each customer.
SELECT
"Customer ID",
STR_TO_DATE(
min
(
"Date of Subscription"
),
'%Y-%m-%d'
)
"Date"
/* fetches the start date from subscription created time */
FROM
"Invoice"
GROUP BY
"Customer ID"
|
This Query Table obtains information on the month and year of the customer's subscription, along with Invoice details.
SELECT
INV.
"Invoice ID" "Invoice ID"
,
INV.
"Date of Subscription" "Date"
,
INV.
"Customer ID" "Customer ID"
,
INV.
"Invoice Owner" "Invoice Owner"
,
STR_TO_DATE(CUS.
"Date"
,
'%Y-%m-%d'
)
'Min Date'
,
date_format(CUS.
"Date"
,
'%Y%m'
)
"Month and Year"
,
/*Extracts the year and month */
period_diff(date_format(INV.
"Date of Subscription"
,
'%Y%m'
), date_format(CUS.
"Date"
, '
%Y%m'
)) '
Month'
/*Finds the duration in months */
FROM
"Customer Start Date"
CUS
INNER JOIN
"Invoice"
INV
ON
INV.
"Customer ID"
= CUS.
"Customer ID"
|
This Query Table obtains the Invoice Owner wise Invoice Count.
SELECT
"Invoice Owner"
,
COUNT
(
"Invoice ID"
)
"Invoice Count"
FROM
"Invoice"
GROUP BY
"Invoice Owner"
|
Now join the table
Invoice Count by Owner
and
Invoice and Recurring Month
using
LookUp Column.
Create a new Pivot View over the
Invoice Count by Owner Query Table by following the below steps.
Your Team Performance Report is created.