Hi friend, may be i failed to explain the query i run the the code but its not giving answer as i accepted. let me explain you the situation. SUB 1 reached to score of more then 10 at week10 so "Time to achieve target 10" has value 10. Likewise SUB 1 reached to score of more then 10 at week7 so "Time to achieve target 10" has value 7. and for sub 3 its week5, for sub 4 its week3, for sub 5 its week1, for sub 7 its week10, for 8 week4 and so on. and what if all Column name is not in sequence (Ex: Jan Mar May Sep Dec) then how can we get values of time to achieve target 10.
... View more