DAX code
CPC =
DIVIDE(SUM('Marketing'[Spend]), SUM('Marketing'[Clicks]))
CPM =
DIVIDE(SUM('Marketing'[Spend]), SUM('Marketing'[Impressions])) * 1000
Calculates the average cost per click and cost per thousand impressions for ad spend.
Type your table and column names once. Every measure below updates.
CPC =
DIVIDE(SUM('Marketing'[Spend]), SUM('Marketing'[Clicks]))
CPM =
DIVIDE(SUM('Marketing'[Spend]), SUM('Marketing'[Impressions])) * 1000
Replace the column names with your own spend, clicks and impressions columns.
Browse all 175 measures in the Power BI DAX Measures Library, or search the library for something similar to CPC, CPM.