E
ed
I have data that looks like this:
"HOUSE","MONTH","MILK-QTY","OJ-QTY","SODA-QTY","MILK-CST","OJ-CST","SODA-CST"
house1,jan,A,B,C,1.00,2.00,3.00
house2,jan,A,B,C,4.00,5.00,6.00
house3,jan,A,B,C,7.00,8.00,9.00
house1,feb,D,E,F,1.50,2.50,3.50
.... etc.
The prim key is "HOUSE"+"MONTH" and the "X-QTY" values are always the
same across all houses (they are joined in from a table that is keyed
only by "MONTH").
I want to use a pivot table to arrange it to be like this:
MONTH | DATA | QTY | HOUSE1 | HOUSE2 | HOUSE3
----------------------------------------------
| milk | A | 1.00 | 4.00 | 7.00
jan | oj | B | 2.00 | 5.00 | 8.00
| soda | C | 3.00 | 6.00 | 9.00
----------------------------------------------
| milk | D | 1.50 | 4.50 | 7.50
feb | oj | E | 2.50 | 5.50 | 8.50
| soda | F | 3.50 | 6.50 | 9.50
----------------------------------------------
etc..
It's a cross-tab on "MONTH" and "HOUSE" with the "X-CST" fields as
data values. But I also want the "X-QTY" columns as data fields, but
not associated with HOUSE.
Anyone have any ideas how to get that "QTY" column in there? I've
tried creating a Calculated Item, but I don't think that's going to
get me what I want. What can I do here? Am I stuck?
"HOUSE","MONTH","MILK-QTY","OJ-QTY","SODA-QTY","MILK-CST","OJ-CST","SODA-CST"
house1,jan,A,B,C,1.00,2.00,3.00
house2,jan,A,B,C,4.00,5.00,6.00
house3,jan,A,B,C,7.00,8.00,9.00
house1,feb,D,E,F,1.50,2.50,3.50
.... etc.
The prim key is "HOUSE"+"MONTH" and the "X-QTY" values are always the
same across all houses (they are joined in from a table that is keyed
only by "MONTH").
I want to use a pivot table to arrange it to be like this:
MONTH | DATA | QTY | HOUSE1 | HOUSE2 | HOUSE3
----------------------------------------------
| milk | A | 1.00 | 4.00 | 7.00
jan | oj | B | 2.00 | 5.00 | 8.00
| soda | C | 3.00 | 6.00 | 9.00
----------------------------------------------
| milk | D | 1.50 | 4.50 | 7.50
feb | oj | E | 2.50 | 5.50 | 8.50
| soda | F | 3.50 | 6.50 | 9.50
----------------------------------------------
etc..
It's a cross-tab on "MONTH" and "HOUSE" with the "X-CST" fields as
data values. But I also want the "X-QTY" columns as data fields, but
not associated with HOUSE.
Anyone have any ideas how to get that "QTY" column in there? I've
tried creating a Calculated Item, but I don't think that's going to
get me what I want. What can I do here? Am I stuck?