The average effect among patients who actually received Drug X: $$\text{ATT} = \mathbb{E}[Y(1) - Y(0) \mid D = 1]$$