It is straightforward. Just use as name the related value and then you can sum in a calculate question. Perhaps you need to include either coalesce or number function.