Computing.Net > Forums > Programming > Pivoting Dynamic rows into columns

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Pivoting Dynamic rows into columns

Reply to Message Icon

Name: dprakash
Date: April 1, 2009 at 04:51:25 Pacific
OS: unix
CPU/Ram: DF
Product: Dfd / Dfdf
Subcategory: Opinions
Comment:

Original file we are getting .......

Item Period Amt

P1 106 1000
P1 206 1500
P1 106 2000
P2 256 5800
P2 650 7500

My output should be like this

Item 106 206 256 650 ............

P1 1000 1500 0 0 ............
P1 2000 0 0 0
P2 0 0 5800 7500 ...............
...........
...........
................

Hi all

my requirement is quite tricky . ..its very urgent...

i want to convert 1st file into as 2nd file........

i want to convert Period col values into columns and amount should be placed w.r.t Period value

If corresponding amount is not available for Period then 0 should be enter for that period...

and Items can be dynamically change.... means it can come P3,P4 etc.......

Thanks
Prakash



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Pivoting Dynamic rows into columns

entry level C++ Question.. www.computing.net/answers/programming/entry-level-c-question/10164.html

VBA - Insert Row(s), Copy 1 Cell www.computing.net/answers/programming/vba-insert-rows-copy-1-cell/16501.html

Simple design questions in C++ www.computing.net/answers/programming/simple-design-questions-in-c/4384.html