Use the pipe (|) to concatenate strings like below (note it would also work without getting the spaces right by using TRIM, but I like to keep things looking clean). If 'Effective AP' is a numeric measure, you also need to convert the value to a string using STR.
Code: Select all
['Effect'] => DB('Headcount Intermediate', 'Forecast', !Year,
'AP ' | TRIM( STR( DB('Headcount Adjustments', !Year, !Cost Centre, !Heacount Position Number, 'Effective AP'), 2, 0)),
!Cost Centre,
DB('Headcount Adjustments', !Year, !Cost Centre, !Heacount Position Number, 'Level'),
!Heacount Position Number, 'TEST') ;
If month number is just a numeric attribute of month (an not an alias) then you can't use it to reference the elements in a feeder statement. If it's an alias, you can use them like there were normal element names.