Hi there,
I need help in customize filtering with the below sample data. i want to write syntax which would look for HARD in sector column and whenever it finds then filter out HARD, EMG, LONG and SHORT records which comes very first after HARD value.
Input:-
| SECTOR | GROSS | NET |
| HARD | 1 | 1 |
| ABC | 2 | 2 |
| EDS | 3 | 3 |
| PASD | 4 | 4 |
| MNABH | 5 | 5 |
| UST | 6 | 6 |
| EMG | 7 | 7 |
| PAST | 8 | 8 |
| LONG | 9 | 9 |
| PAOSI | 10 | 10 |
| SHORT | 11 | 11 |
Output:-
| SECTOR | GROSS | NET |
| HARD | 1 | 1 |
| EMG | 7 | 7 |
| LONG | 9 | 9 |
| SHORT | 11 | 11 |