Partition of data by a condition & Selectively changing the values of a column

Awesome! >i dont know how to thank you enough.saved my day!

Since you are so good :slight_smile: ,it will be of great help if you could look at the below question of mine.Please comment if my request is not clear