OK, our forum software seems to disregard the spaces even in code.
Assuming the Value1='Produced', Value2='Sold' and Value3='Forecast'
You've got two options to use the crosstab in your data.
In first option you make crosstab over size and let the value1-3 be data categories. In this setup you get one line per Model, Color, WorkOrder.
select 'dbr.crosstab', 4;
select Model,
Color,
WorkOrder,
Size,
Value1 as 'Produced',
Value2 as 'Sold',
Value3 as 'Forecast'
from mydata;
In a second option If you wish to split the each value category to own row :
select 'dbr.crosstab', 5;
select Model, Color, WorkOrder, 'Produced', Size, Value1
from mydata
union
select Model, Color, WorkOrder, 'Sold', Size, Value2
from mydata
union
select Model, Color, WorkOrder, 'Forecast', Size, Value3
from mydata;
Optionally you can set header levels to hide repetitive Model, Color and WorkOrder.
HTH,
--
myDBR Team