Hi, I have a data ID Name Type Length 1 branch_code Character 7 2 NationCMP Character 3 3 Version Character 6 4 ZoneCMP Character 9 5 cmp Character 31 6 NoCount Numeric 8 which is designed for excel pivot table, for field 1-4 are already-grouped-by field, field 5 cmp has a lot of values to be distinguished in Pivot table as Row, for eg. with value 'Male','Female' as Sex classification and 'Commercial','Production' as Occupation classification, 'saving account','Term deposit' as account type. and field 6 nocount are the count/sum respective to field cmp, say cmp=male, nocount=9, cmp=saving account, nocount=15235.76 This format serves my purpose to generate Excel pivot, but it is vertically duplicated. I want to use transpose to re-write the format as follows, but with half day try failed, please give a hand. branch_code NationCMP Version ZoneCMP Male Female saving account Term deposit Commercial Production for field 1-4 no transpose, to set values for cmp to the field name, to set respective values for nocount as value under the field. Thus to avoid duplication. Thanks.
... View more