vertical pivot is hanging
Posted: Mon Aug 12, 2013 6:14 pm
Hi,
I have i/p as
id date gp code amt
1 1992-01-01 US abc 123
1 1992-01-01 US abc 124
1 1992-02-01 US abc 234
1 1992-03-01 US abc 245
Expected o/p
id gp code jan feb march april june july aug sept oct nov dec
1 US abc 247 234 245
i used pivot stage and type as vertical pivot . group by by id,gp,code and pivot column amt, array size 12
i am getting o/p as
id gp code jan feb march april june july aug sept oct nov dec
1 US abc 123 124 234
not sure where i am going wrong and also iam sending sorted data to pivot stage . Any suggestions please.
Thanks
I have i/p as
id date gp code amt
1 1992-01-01 US abc 123
1 1992-01-01 US abc 124
1 1992-02-01 US abc 234
1 1992-03-01 US abc 245
Expected o/p
id gp code jan feb march april june july aug sept oct nov dec
1 US abc 247 234 245
i used pivot stage and type as vertical pivot . group by by id,gp,code and pivot column amt, array size 12
i am getting o/p as
id gp code jan feb march april june july aug sept oct nov dec
1 US abc 123 124 234
not sure where i am going wrong and also iam sending sorted data to pivot stage . Any suggestions please.
Thanks