Hi – I want to filter last 3 months of date range from input date column using As of Date column value. How would I do that in filter tool. I am not able to write the correct formula. Please. help me in this.
In the expected output if my as of date is 06/30/2024 then I am expecting data to be filter from March month end to Jun month end i.e 03/31/2024 to 06/30/2024.
| Input data:- | | |
| | | | |
| acct_id | input_date | input_value | As of Date |
| 100 | 5/28/2021 | -50000008.2 | 6/30/2024 |
| 100 | 7/22/2021 | -5000000 | 6/30/2024 |
| 100 | 8/11/2021 | -38500000 | 6/30/2024 |
| 100 | 3/31/2024 | 37500000 | 6/30/2024 |
| 100 | 4/10/2024 | 1000000 | 6/30/2024 |
| 100 | 4/22/2024 | -1000000 | 6/30/2024 |
| 100 | 4/30/2024 | 1000000 | 6/30/2024 |
| 100 | 5/2/2024 | -1000000 | 6/30/2024 |
| 100 | 5/15/2024 | 980000 | 6/30/2024 |
| 100 | 5/25/2024 | -7299900 | 6/30/2024 |
| 100 | 6/30/2024 | 7300100 | 6/30/2024 |
| 100 | 6/30/2024 | 7219908 | 6/30/2024 |
| 100 | 6/30/2024 | -7300100 | 6/30/2024 |
| 100 | 6/30/2023 | 55100000.2 | 6/30/2024 |
| 100 | 6/30/2023 | 55100000 | 6/30/2024 |
| 100 | 6/30/2023 | -0.09 | 6/30/2024 |
| | | | |
| Expected Output:- | | |
| | | | |
| acct_id | input_date | input_value | As of Date |
| 100 | 3/31/2024 | 37500000 | 6/30/2024 |
| 100 | 4/10/2024 | 1000000 | 6/30/2024 |
| 100 | 4/22/2024 | -1000000 | 6/30/2024 |
| 100 | 4/30/2024 | 1000000 | 6/30/2024 |
| 100 | 5/2/2024 | -1000000 | 6/30/2024 |
| 100 | 5/15/2024 | 980000 | 6/30/2024 |
| 100 | 5/25/2024 | -7299900 | 6/30/2024 |
| 100 | 6/30/2024 | 7300100 | 6/30/2024 |
| 100 | 6/30/2024 | 7219908 | 6/30/2024 |
| 100 | 6/30/2024 | -7300100 | 6/30/2024 |