Pipeline

``` ## FILE 2 — `glm_sales_analytics.html` ```html Meridian — Sales Analytics
Meridian. Sales Analytics
Q3 FY25 · Jul 1 – Sep 30, 2025
Open pipeline$724,00010 open deals
Weighted forecast$322,050value × stage probability
Avg sales cycle64 dayscreated → closed won
Lead → closed won9.4%320 leads, Q3 cohort
01

Pipeline value by stage

Total potential revenue sitting at each stage
-- Total potential revenue at each open stage
SELECT stage,
       COUNT(*)               AS deals,
       SUM(value)             AS pipeline_value,
       SUM(value * probability) AS weighted_value
FROM   deals
WHERE  stage NOT IN ('Closed Won', 'Closed Lost')
GROUP BY stage
ORDER BY FIELD(stage, 'Prospecting','Qualification',
                  'Proposal','Negotiation');

Open pipeline · $724,000

Reading: the bulk of value sits mid-funnel — Negotiation ($249,000) and Qualification ($206,000). Negotiation alone contributes $174,300 weighted, so rep focus there moves the quarter most.
02

Conversion rates between stages

Q3 cohort · 320 leads through the funnel
-- Funnel reach: how far leads progress
SELECT s.to_stage,
       COUNT(*) AS reached,
       ROUND(100 * COUNT(*) / t.leads, 1) AS pct_of_leads
FROM   stage_history s JOIN deals d ON d.id = s.deal_id
       CROSS JOIN (SELECT COUNT(*) AS leads FROM contacts) t
WHERE  s.entered_at >= '2025-07-01'
GROUP BY s.to_stage
ORDER BY FIELD(s.to_stage, 'Contacted','Qualified',
                 'Proposal','Negotiation','Closed Won');

Stage-to-stage conversion

Reading: the sharpest drop-off is Qualified → Proposal (36.7% of leads reach proposal). Prospecting→Contacted holds at 68%, so early-stage volume is healthy; mid-funnel follow-up is the leak.
03

Average deal size & sales cycle

Closed-won deals this quarter
-- Deal economics for won business
SELECT ROUND(AVG(value), 0)                          AS avg_deal_size,
       MIN(value)                                    AS smallest,
       MAX(value)                                    AS largest,
       ROUND(AVG(DATEDIFF(close_date, created_at)), 1) AS avg_cycle_days
FROM   deals
WHERE  stage = 'Closed Won'
       AND close_date BETWEEN '2025-07-01' AND '2025-09-30';

Won-deal economics

Avg deal size
$35,2504 won deals
Avg sales cycle
64 days58 – 67 day range
Largest won
$64,000Stonebridge Legal
Smallest won
$36,000Willow & Sage
Reading: won deals average $35,250 with a 64-day cycle — roughly two months from first touch to signature. Open deals average $72,400, so larger deals are still working their way through.
04

Sales rep performance comparison

Ranked on closed-won revenue, Q3 to date
-- Rep scoreboard: wins, losses, weighted pipeline
SELECT u.name,
       SUM(CASE WHEN d.stage='Closed Won' THEN d.value ELSE 0 END) AS won_rev,
       SUM(d.stage='Closed Won')   AS n_won,
       SUM(d.stage='Closed Lost')  AS n_lost,
       SUM(CASE WHEN d.stage NOT IN ('Closed Won','Closed Lost')
            THEN d.value * d.probability ELSE 0 END) AS weighted_pipeline
FROM   users u LEFT JOIN deals d ON d.owner_id = u.id
GROUP BY u.name
ORDER BY won_rev DESC;

Rep scoreboard

RepWonRecordWin rateWeighted pipe
Reading: Priya leads on closed revenue ($64,000, 100% win rate). Maya has the largest weighted pipeline ($149,400) but no closes yet — her quarter hinges on Harborview and Beacon. Tom's 0W–1L record masks $78,100 of weighted pipeline.
05

Forecast vs actual closed — this quarter

Quota vs won-to-date + weighted pipeline closing by Sep 30
-- Per-rep forecast: closed won + weighted open closing in-quarter
SELECT u.name, u.quarterly_quota,
       SUM(CASE WHEN d.stage='Closed Won'
            AND d.close_date BETWEEN '2025-07-01' AND '2025-09-30'
            THEN d.value ELSE 0 END) AS closed_won,
       SUM(CASE WHEN d.stage NOT IN ('Closed Won','Closed Lost')
            AND d.close_date <= '2025-09-30'
            THEN d.value * d.probability ELSE 0 END) AS weighted_forecast
FROM   users u LEFT JOIN deals d ON d.owner_id = u.id
GROUP BY u.name, u.quarterly_quota;

Projected attainment vs $75,000 quota (dashed line)

Reading: team projected attainment is 141% of quota ($424,050 projected vs $300,000). Closed-won to date is $141,000 — 47% of quota at week 6 of 13, tracking ahead. Tom is the only rep projected under quota (98%).
06

Lead source effectiveness

Which sources produce the best conversion to closed-won
-- Source quality: leads → qualified → won
SELECT c.source,
       COUNT(*)                                        AS leads,
       SUM(c.status IN ('Qualified','Converted'))      AS qualified,
       SUM(c.status = 'Converted')                     AS won,
       ROUND(100 * SUM(c.status='Converted') / COUNT(*), 1) AS win_rate_pct
FROM   contacts c
GROUP BY c.source
ORDER BY win_rate_pct DESC;

Source performance · ranked by lead → won rate

SourceLeadsQualifiedWonLead→won
Reading: Referrals win at 21.4% — 7× LinkedIn Ads (2.7%) — and Partners aren't far behind at 20%. Website volume is high (88 leads) but converts at just 6.8%. This argues for shifting spend toward referral programs and partner co-marketing.