Этот запрос работает нормально, поэтому убедитесь, что ваши типы правильно приведены:
declare @t table (
ItemId varchar(10),
ProductId varchar(5),
Revenue decimal(9,2),
PerItemPrice decimal(9,2),
Quantity int)
insert into @t select '14528097','7575',12.95,12.95,1
select 1 as 'Tag', NULL as 'Parent',
NULL as 'Items!1!',
NULL as 'Item!2!Item',
NULL as 'Item!2!Revenue'
union
select 2, 1, NULL, ItemId, Revenue
from @t for xml explicit