Menu

How to Report Pipeline by Channel (Inbound vs Outbound) From a CRM Export With SQL
📰

How to Report Pipeline by Channel (Inbound vs Outbound) From a CRM Export With SQL

DEV Community: sql·Narrative Brand Labs·2 days ago
#UIL8dbxS
#devtosql#devto#dev#pipeline#deals
Long article (725 words) — no AI summary yet.
Reading 0:00
15s threshold

Short answer

Export your deals with the first-touch utm_medium stored on each one, map every medium to a channel (inbound, paid, outbound) with a CASE expression, then group by channel. One query gives you deal count, pipeline, won revenue, win rate and each channel's share of pipeline.

Narrative Brand Labs, a fractional go-to-market and RevOps consultancy for mid-market B2B companies, uses this kind of report to answer a simple budget question: which channel is actually producing pipeline?

What you need first

This only works if each deal carries the source of the visit that created the lead. In an earlier post I showed how to capture UTM parameters in hidden form fields so the CRM stores first_utm_source and first_utm_medium on every contact.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.