Hi – I am working on one of the automation project and below sample data already generated using custom filter tool which filters last 3-month date range using as of date column value. Now I want filter more this data such way that from last quarter end only input type id 7, 32 & 41 to be filtered along with records date ranging from 04/01/2024 to 06/30/2024. Rest everything to be filtered out.
How would I achieve this? Can someone please help.
Please refer below sample input table and expected output.
Input table:-
| acct_id | sec_id | input_type_id | input_date | input_value | As of Date |
| 999 | 111 | 5 | 3/31/2024 | 900000 | 6/30/2024 |
| 999 | 111 | 11 | 3/31/2024 | 1000000 | 6/30/2024 |
| 999 | 111 | 13 | 3/31/2024 | 1100000 | 6/30/2024 |
| 999 | 111 | 20 | 3/31/2024 | 1200000 | 6/30/2024 |
| 999 | 111 | 36 | 3/31/2024 | 1300000 | 6/30/2024 |
| 999 | 111 | 7 | 3/31/2024 | 100000 | 6/30/2024 |
| 999 | 111 | 32 | 3/31/2024 | 200000 | 6/30/2024 |
| 999 | 111 | 41 | 3/31/2024 | 300000 | 6/30/2024 |
| 999 | 111 | 1 | 5/6/2024 | 400000 | 6/30/2024 |
| 999 | 111 | 6 | 6/13/2024 | 500000 | 6/30/2024 |
| 999 | 111 | 41 | 6/30/2024 | 600000 | 6/30/2024 |
| 999 | 111 | 7 | 6/30/2024 | 700000 | 6/30/2024 |
| 999 | 111 | 32 | 6/30/2024 | 800000 | 6/30/2024 |
| 999 | 111 | 5 | 6/30/2024 | 900000 | 6/30/2024 |
| 999 | 111 | 11 | 6/30/2024 | 1000000 | 6/30/2024 |
| 999 | 111 | 13 | 6/30/2024 | 1100000 | 6/30/2024 |
| 999 | 111 | 20 | 6/30/2024 | 1200000 | 6/30/2024 |
| 999 | 111 | 36 | 6/30/2024 | 1300000 | 6/30/2024 |
expected output:-
| acct_id | sec_id | input_type_id | input_date | input_value | As of Date |
| 999 | 111 | 7 | 3/31/2024 | 100000 | 6/30/2024 |
| 999 | 111 | 32 | 3/31/2024 | 200000 | 6/30/2024 |
| 999 | 111 | 41 | 3/31/2024 | 300000 | 6/30/2024 |
| 999 | 111 | 1 | 5/6/2024 | 400000 | 6/30/2024 |
| 999 | 111 | 6 | 6/13/2024 | 500000 | 6/30/2024 |
| 999 | 111 | 41 | 6/30/2024 | 600000 | 6/30/2024 |
| 999 | 111 | 7 | 6/30/2024 | 700000 | 6/30/2024 |
| 999 | 111 | 32 | 6/30/2024 | 800000 | 6/30/2024 |
| 999 | 111 | 5 | 6/30/2024 | 900000 | 6/30/2024 |
| 999 | 111 | 11 | 6/30/2024 | 1000000 | 6/30/2024 |
| 999 | 111 | 13 | 6/30/2024 | 1100000 | 6/30/2024 |
| 999 | 111 | 20 | 6/30/2024 | 1200000 | 6/30/2024 |
| 999 | 111 | 36 | 6/30/2024 | 1300000 | 6/30/2024 |