Short answer: cost per lead (CPL) = marketing spend / new leads. Leads then move through stages: MQL (marketing qualified: fits the profile and showed interest), SQL (sales qualified: sales accepted it as a real opportunity) and won. The MQL to SQL rate = MQLs that became SQLs / MQLs, measured by the month the leads became MQLs. Because a cheap lead that never qualifies is expensive, judge sources by cost per SQL and cost per won customer, not by CPL.
Marketing celebrates cheap leads; sales complains they are useless. Measuring the whole funnel per source, with costs at every stage, settles it with numbers.
How does the funnel look by source?
| Source | Spend (k) | Leads | CPL | MQL | SQL | Won | MQL to SQL | Cost per SQL | Cost per won |
|---|---|---|---|---|---|---|---|---|---|
| Webinars | 20 | 400 | 50 | 160 | 64 | 16 | 40% | 313 | 1,250 |
| Paid social | 30 | 1,500 | 20 | 300 | 45 | 6 | 15% | 667 | 5,000 |
| Content, SEO | 10 | 600 | 17 | 210 | 63 | 14 | 30% | 159 | 714 |
| Total | 60 | 2,500 | 24 | 670 | 172 | 36 | 26% | 349 | 1,667 |
Paid social has the lowest CPL after content and the highest cost per won customer: its leads rarely qualify.
What is the DAX?
A Leads table with one row per lead: Lead ID, Source, Created Date, MQL Date, SQL Date, Won Date (blank until reached). Created Date relates to the Date table; the stage measures count by cohort (leads created in the period):
Leads = COUNTROWS ( Leads )
MQLs = CALCULATE ( [Leads], NOT ISBLANK ( Leads[MQL Date] ) )
SQLs = CALCULATE ( [Leads], NOT ISBLANK ( Leads[SQL Date] ) )
Won = CALCULATE ( [Leads], NOT ISBLANK ( Leads[Won Date] ) )
Spend = SUM ( Spend[Amount] )
CPL = DIVIDE ( [Spend], [Leads] )
Lead to MQL % = DIVIDE ( [MQLs], [Leads] )
MQL to SQL % = DIVIDE ( [SQLs], [MQLs] )
SQL to Won % = DIVIDE ( [Won], [SQLs] )
Cost per SQL = DIVIDE ( [Spend], [SQLs] )
Cost per Won = DIVIDE ( [Spend], [Won] )
Days MQL to SQL =
AVERAGEX (
FILTER ( Leads, NOT ISBLANK ( Leads[SQL Date] ) ),
Leads[SQL Date] - Leads[MQL Date]
)Counting by created date (cohort) keeps each rate a true share of the same leads. Counting each stage by its own date ("SQLs this month") answers a different question, how busy each stage was; use USERELATIONSHIP on SQL Date for that view.
What is lead velocity?
Lead velocity rate = (qualified leads this month - last month) / last month. Growing qualified leads predict pipeline in the coming months, a leading KPI for pipeline coverage.
MQLs by MQL Month = CALCULATE ( [Leads], USERELATIONSHIP ( Leads[MQL Date], 'Date'[Date] ) )
MQLs PM = CALCULATE ( [MQLs by MQL Month], DATEADD ( 'Date'[Date], -1, MONTH ) )
Lead Velocity % = DIVIDE ( [MQLs by MQL Month] - [MQLs PM], [MQLs PM] )What goes wrong?
- Young cohorts. Leads from last week have not had time to become SQLs; the latest months look worse.
- Definitions that drift. If the MQL score threshold changes, MQL numbers jump; record the definition and its change date.
- Spend by source missing. Events and content have staff costs; without them their CPL looks free.
- Leads skipping stages. A lead that goes straight to SQL has no MQL date; set MQL Date when SQL is set.
Where can you check this?
- Microsoft Learn: USERELATIONSHIP function (DAX)
- Microsoft Learn: Funnel charts in Power BI
- Microsoft Learn: AVERAGEX function (DAX)
Where do you start?
Add stage dates to the leads export, build the funnel by source, and rank sources by cost per won customer. Win rate continues after SQL.