Hi Community,
I need to get Target_order_of_sale(output) from Current_Order_of_sale. As you can see if there is value in "current.." column then that value should go in output, and if not it should get value depending on "current" and "class" priority(by that I mean that A is highest and b2 lowest priority).

I was trying multiple ways to solve it , but cannot find a correct solution.
Help!!!!
Best