Hi Team,
Need quick help in below data:
I have more than 20 columns in one data file and need to produce 21st column by adding values of those 20 columns.
But there is no certainity that all 20 columns will be present in each month data.At times we can have only 15 columns or 17 columns or all 20 columns but need to produce the additional column with all columns which are present in data file.
For example:
| Filename | Code A | Code B | Code C | Result |
| A | 12 | 1 | 0 | 13 |
| B | 13 | 2 | 0 | 15 |
| C | 12 | 3 | 0 | 15 |
Result column is summation of Code A,B and C.
But in next month we might not have Code C in input file and result should be summation of Code A and B.
Similarly we might not have code A in future so result will be summation of Code B and C.
.
Absent column means no data in input file and hence result will be summation of only present column.
How to resolve this as I have more than 20 columns ?
Can you please help?
Thanks