We address the problem of allocating the counterparty-level credit valuation adjustment (CVA) to the individual trades composing the portfolio. We show that this problem can be reduced to calculating ...