have a data set which looks like this:
Date Item A.unit B.Unit C.Unit D.Unit
10/11 A,D 5 0 0 12
11/11 A,B,C 10 10 5 0
12/11 A 20 0 0 0
i want the output column so that whenever there are more than one element in the list, it will calculate the difference of the unit, and when single element is present it will display zero. so output will be:
Date Item A.unit B.Unit C.Unit D.Unit output
10/11 A,D 5 0 0 12 5-12=-7
11/11 A,B,C 10 10 5 0 10-10-5=-5
12/11 A 20 0 0 0 0--since only one element is there
can anyone please tell me how to get the output column.