Hi David,
I suggest you use a variable on header level and populate it with the Index and SplitByValue functions.
Like this - just without the concatenation:
SAP PI 7.1 Mapping Enhancements Series: Using Graphical Variable
See also:
Standard Functions in PI 7.0 - Process Integration - SCN Wiki
Kind regards
Konrad