Hi Experts, Lets say i have this table: customer a1 a2 a3 a4 a5 a6 qqq 3000 3000 3200 3050 3500 3100 qqq 3000 3100 3050 3050 3050 3100 I want to create new column , an indicator that return 1 if : 1. a1=a2=a3=a4=a5 or the difference between (a1 to a6 )is no more then 5% difference from the minimum number. in this example , in row numer 1,2 the min number is 3000 ,soo the diff is +-150 2. else 0 customer a1 a2 a3 a4 a5 a6 indicator qqq 3000 3000 3200 3050 3500 3100 0 qqq 3000 3100 3050 3050 3050 3100 1 qqq 4000 4000 4000 4000 4000 4000 1 Any ideas? Best Regards
... View more