Short answer: CTR (click-through rate) = clicks / impressions. CPC (cost per click) = spend / clicks. CPM (cost per mille) = spend / impressions × 1,000. They are linked: CPC = CPM / (1,000 × CTR), so a better CTR at the same CPM makes each click cheaper. Add CPA (cost per acquisition) = spend / conversions to reach the outcome. In DAX, sum spend, clicks and impressions first and divide the totals; never average the platform's daily CTR or CPC.
These metrics diagnose ads: CPM is the price of attention, CTR whether the ad is interesting, CPC the price of a visit, and CPA what an order costs.
How are they calculated?
| Ad | Impressions | Clicks | Spend | Conversions | CTR | CPC | CPM | CPA |
|---|---|---|---|---|---|---|---|---|
| Video A | 400,000 | 4,800 | 2,400 | 96 | 1.20% | 0.50 | 6.00 | 25.00 |
| Image B | 250,000 | 1,500 | 1,500 | 45 | 0.60% | 1.00 | 6.00 | 33.33 |
| Total | 650,000 | 6,300 | 3,900 | 141 | 0.97% | 0.62 | 6.00 | 27.66 |
Both ads cost the same per thousand impressions (CPM 6.00), but Video A's double CTR halves its CPC: 6.00 / (1,000 × 1.2%) = 0.50.
What is the DAX?
Impressions = SUM ( Ads[Impressions] )
Clicks = SUM ( Ads[Clicks] )
Ad Spend = SUM ( Ads[Spend] )
Conversions = SUM ( Ads[Conversions] )
CTR = DIVIDE ( [Clicks], [Impressions] )
CPC = DIVIDE ( [Ad Spend], [Clicks] )
CPM = DIVIDE ( [Ad Spend], [Impressions] ) * 1000
CPA = DIVIDE ( [Ad Spend], [Conversions] )
Click to Conversion % = DIVIDE ( [Conversions], [Clicks] )Load the platforms' exports into one Ads table with the same columns (Date, Platform, Campaign, Ad, Impressions, Clicks, Spend, Conversions), converting currencies on the way in. All totals then work across platforms.
Why must you divide totals?
| Day | Impressions | Clicks | Daily CTR |
|---|---|---|---|
| Mon | 100,000 | 1,000 | 1.0% |
| Tue | 10,000 | 300 | 3.0% |
| Average of daily CTR | 2.0% | ||
| Total clicks / total impressions | 110,000 | 1,300 | 1.18% |
A quiet day counts as much as a busy one in an average of rates. Measures that sum first and divide last are always right, at every level.
What goes wrong?
- Averaging platform rates. Sum, then divide.
- Different click definitions. Link clicks, all clicks, outbound clicks; pick one per platform.
- Different conversion counts. Each platform attributes its own; compare with your orders (see ROAS).
- CTR as the goal. A clickbait ad wins on CTR and loses on CPA; judge by CPA or ROAS.
Where can you check this?
- Microsoft Learn: SUM function (DAX)
- Microsoft Learn: DIVIDE function (DAX)
- Microsoft Learn: Append queries in Power Query
Where do you start?
Append all ad platforms into one table and build the five measures; then sort ads by CPA. Cost per lead and MQL to SQL continues the funnel for B2B.