Hi Misra
Many thanks, for row 11 and 12 the rating is 1, so it should not consider that row for condition, the condition should check last 25 records of A and and score >2.5 and Rating C. ie, 11, 12, and 13 row score is <2.5, so the condition should take till row higlighted in green. xample: last 25 record means, last 25 where score >2.5