Pharma Commercial Analytics Path · Mission 22 of 25Master

Rep effectiveness — calls vs Rx delta paired pivot, ranked within district

Multi-CTE pipeline with three derived facts (calls per rep, attributed Rx via territory→HCP, rank within manager). The exercise teaches the load-bearing 'fact_rx → dim_hcp.territory_id ↔ dim_rep.territory_id' attribution chain, which is the most common 'where does the territory_id live?' confusion for new pharma analysts.

The Brief

You'll practice

Territory attribution chainRANK PARTITION BY managerMulti-CTE