Hi All,
I am working on a use case where I need to select some columns based on value of one of the column in row.
The sample example shown below:
| Reference ID | Name | Indicator | Store1 | Address1 | Store2 | Address2 |
| ID1 | A | 1 | StoreX | AddressX | StoreA | AddressX |
| ID2 | B | 1 | StoreY | AddressY | StoreB | AddressY |
| ID3 | C | 2 | StoreZ | AddressZ | StoreC | AddressZ |
So, when the indicator is 1, I need to take forward columns Reference ID, Name, Store1 and Address1,
and when the indicator is 2, I need to take forward columns Reference ID, Name, Store2 and Address2.
Then I have big business logic to work on these columns.
Is there any simple way to achieve this? Thanks much in advance.