I have a data frame named Ash having these 4 columns
Cat Qty Rev Margin
A 2 100 2%
B 3 200 3%
C 4 300 4%
D 5 400 5%
I need to merge this with data to another data frame named as Test which has three parts(A,B and C). So I only want to merge Ash data frame with part A in Test and not to the entire data frame including part B and part C.If I use merge it will apply to all the data frame Test.
How to use loop by using coloumn and row specific numbers to fill the data in test using category as common variable. I have used numbers for referencing. 1,2,3,4 in columns refer to their position. 1,2,3,4 under X.no is for row referencing. Part A(Overall) 1 2 3 4
X.no Cat TotalQty TotalRev TotalMargin
1 A
2 B
3 C
4 D
For Web Part B
Cat
A
B
C
D
For Non-Web
Part C
Cat
A
B
C
D