N
NetworkTrade
have this:
Key Field1 Field2
1 X 100
2 ABC 123
3 111 aaa
4 X 101
5 asd 1212
6 frr 321
Need this:
Key Field1 Field2 Field3
1 X 100 100
2 ABC 123 100
3 111 aaa 100
4 X 101 101
5 asd 1212 101
6 frr 321 101
If field1=X then Field3 = Field2 (so far so good - no problemo)
If field1 is not X then Field3 = Field 3 of preceeding record per Key sequence
am struggling with this second part.......
Key Field1 Field2
1 X 100
2 ABC 123
3 111 aaa
4 X 101
5 asd 1212
6 frr 321
Need this:
Key Field1 Field2 Field3
1 X 100 100
2 ABC 123 100
3 111 aaa 100
4 X 101 101
5 asd 1212 101
6 frr 321 101
If field1=X then Field3 = Field2 (so far so good - no problemo)
If field1 is not X then Field3 = Field 3 of preceeding record per Key sequence
am struggling with this second part.......