Focal Point
[CLOSED] Need to Generate Column based on column values

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9967004136

June 11, 2013, 05:47 AM
Gita
[CLOSED] Need to Generate Column based on column values
Hi,
I m new to webfocus. i hav a req like this

In table
wk month
1 Jan
2 Jan
3 Jan
1 Feb
2 Feb
. ..
and it goes on

My req is to create like this
wk_i month Jan_1 Jan_2 Jan_3 Feb_1 Feb_2...
1 Jan
2 Jan
3 Jan
1 Feb
2 Feb
. ..
Thanks in advance

This message has been edited. Last edited by: <Kathryn Henning>,


Webfocus 7.6,
Windows and Excel
June 11, 2013, 06:57 AM
Ram Prasad E
Hello,

You can concatenate Month and Week. Hold it using ACROSS will generate new HOLD file with that many columns. Remember to use ASNAMES ON.


WebFOCUS 8.1.05
Windows
http://ibiwebfocus.wordpress.com
https://www.facebook.com/groups/ibi.webfocus/
June 12, 2013, 06:08 AM
Gita
Hi Ram,
Thank u for the timely help. i hav done as you said
i got result like this
Jan_1 Jan_2 Jan_3 .....


but i also need the wk_i and month column with that result..
i cant join as i dont hav the common field.
Any idea


Webfocus 7.6,
Windows and Excel
June 20, 2013, 04:29 AM
Ram Prasad E
Hello,

You should create another HOLD file and then do a CROSS join.

Thanks,
Ram


WebFOCUS 8.1.05
Windows
http://ibiwebfocus.wordpress.com
https://www.facebook.com/groups/ibi.webfocus/