Special Pivot.

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
Anthony1200
Premium Member
Premium Member
Posts: 28
Joined: Wed Mar 28, 2007 6:57 am
Location: Amsterdam

Special Pivot.

Post by Anthony1200 »

Hi guys,

I'm hoping someone can help me :) i need to pivot a table like this:
COL1 COL2 COL3 FIN1 FIN2 FIN3

The COL1 to COL3 collums don't need any special formatting
the FIN1 to FIN3 need to be pivotted to REVENUE. So far no problem with a pivot stage.
But here's the problem... FIN1 to FIN3 are listed per period..
so i want an additional column with a PERIOD indicator..

Have you guys got any ideas about that??

Thanks!
Kind regards,
Anthony
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Upstream of the stage doing the pivoting create more columns containing the name of each period (as constants). Pivot these columns too.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Anthony1200
Premium Member
Premium Member
Posts: 28
Joined: Wed Mar 28, 2007 6:57 am
Location: Amsterdam

Post by Anthony1200 »

Thanks Ray,

Well that will take me some time :p 53 weeks times three years ha ha! :p

Thanks!
Kind regards,
Anthony
Post Reply