Hi Team - Im trying to capture details from a field based on different scenarios.
In sample data below, From Field3 Scenario1. Need to capture '1234' , Scenario-2. If Inv_Num is null or not available then need to capture Ord_Num value '1234',
Scenario-3. If Field3 is blank then need to consider Field2.
| Field1 | Field2 | Field3 |
| Prod1 | Inv_Num | A,B,C,Inv_Num,1234,F,G |
| Prod2 | Inv_Num | Ord_Num,1234,C,Inv_Num,null,F,G |
| Prod3 | Inv_Num | Ord_Num,1234,C,D,E,F,G |
| Prod4 | Inv_Num | Null(Select Field2(Inv_Num) |
Field3 is different for each line item, its based on Product in Field1.
Tried different things but couldnt get a solution, Any help will be much appreciated.