The derivation problem for summary data