S
Sarah Johnson
Total Pipeline Value
$0
18 open deals
Won Deals (Q4)
$0
2 closed-won
Avg Deal Size
$0
across all deals
Conversion Rate
0%
lead → won
Contact Management
Name Company Source Status Value Owner Deals
Sales Pipeline
Team Performance Leaderboard
Rank Sales Rep Deals Won Total Value Won Conversion Rate Avg Cycle Length
``` ### CRM System Overview This page combines contact management, pipeline tracking, and team performance into one interface. - **Pipeline Board:** Drag deals between stages (Lead → Won/Lost). Each card shows value, close date, and probability. Drop a card into a new column to update its stage and probability instantly. - **Contact Management:** Use the search bar and filters (Source, Status) to find contacts. The table shows key details like value and owner. Click the “deals” link to see all deals for that contact. - **Deal Detail & Activity Logging:** Click any deal card to open a modal with stage, value, close date, owner, and a full activity timeline. Use the form to log calls, emails, or meetings with notes and dates. - **Team Leaderboard:** Tracks each rep’s won deals, total value, conversion rate, and average sales cycle length. Rankings update live, helping you identify top performers. The KPI row at the top summarizes total pipeline value, won deals, average deal size, and conversion rate for quick reference. --- **Analytics Dashboard** Now, here is the companion sales analytics dashboard with SQL-based metrics. ```html PipelinePro - Sales Analytics
Q4 2024 · Sales Performance Dashboard
Total Pipeline Value
$0
Open deals (excl. Won/Lost)
Average Deal Size
$0
All deals
Avg Sales Cycle
0d
Won deals only
Overall Win Rate
0%
Won / (Won + Lost)
1. Pipeline Value by Stage
Total potential revenue at each stage of the funnel
SELECT stage, SUM(value) AS pipeline_value
FROM deals
GROUP BY stage
ORDER BY CASE stage
  WHEN 'Lead' THEN 1
  WHEN 'Qualification' THEN 2
  WHEN 'Proposal' THEN 3
  WHEN 'Negotiation' THEN 4
  WHEN 'Won' THEN 5
  WHEN 'Lost' THEN 6
END;
2. Conversion Rates Between Stages
% of deals advancing from each stage to the next
SELECT
  from_stage,
  COUNT(DISTINCT deal_id) AS deals_moved
FROM pipeline_history
GROUP BY from_stage;
3. Average Deal Size & Sales Cycle Length
Deal size distribution and cycle duration
SELECT
  AVG(value) AS avg_deal_size,
  AVG(DATEDIFF(close_date, created_date)) AS avg_cycle_days
FROM deals
WHERE stage = 'Won';
4. Sales Rep Performance Comparison
Total won value & deal count per rep
SELECT
  owner_id,
  SUM(value) AS total_value,
  COUNT(*) AS deal_count
FROM deals
WHERE stage = 'Won'
GROUP BY owner_id;
5. Forecast vs Actual Closed Deals (Q4)
Forecasted value (probability-weighted) vs actual closed-won
SELECT
  'Forecast' AS metric, SUM(value * probability/100) AS amount
FROM deals
WHERE stage IN ('Proposal','Negotiation')
UNION ALL
SELECT 'Actual', SUM(value)
FROM deals
WHERE stage = 'Won';
6. Lead Source Effectiveness
Deals by source and conversion per source
SELECT
  c.source,
  COUNT(d.id) AS deals,
  SUM(CASE WHEN d.stage='Won' THEN 1 ELSE 0 END) AS won
FROM contacts c
LEFT JOIN deals d ON c.id = d.contact_id
GROUP BY c.source;