Hi,
Can someone please help me? how can i filter below table with condition where Date is month-end date for those records if MV is not equals to 0 and Capcon or Dist is equals to 0. only those records to come in the final table along with those non month-end date records.
Input table:-
| Date | CapCon | Dist | MV |
| 10/18/2024 | 100000 | 0 | 2000000 |
| 3/31/2025 | 0 | 0 | 6000000 |
| 11/10/2021 | 800000 | 0 | 10000000 |
| 11/22/2021 | 5000000 | 0 | 14000000 |
| 12/17/2021 | 9200000 | 0 | 18000000 |
| 5/4/2022 | 13400000 | 0 | 22000000 |
| 12/14/2022 | 17600000 | 0 | 26000000 |
| 2/5/2024 | 21800000 | 0 | 30000000 |
| 3/31/2025 | 0 | 34000000 | 34000000 |
| 3/31/2025 | 0 | 0 | 38000000 |
Expected output :-
| Date | CapCon | Dist | MV |
| 10/18/2024 | 100000 | 0 | 2000000 |
| 3/31/2025 | 0 | 0 | 6000000 |
| 11/10/2021 | 800000 | 0 | 10000000 |
| 11/22/2021 | 5000000 | 0 | 14000000 |
| 12/17/2021 | 9200000 | 0 | 18000000 |
| 5/4/2022 | 13400000 | 0 | 22000000 |
| 12/14/2022 | 17600000 | 0 | 26000000 |
| 2/5/2024 | 21800000 | 0 | 30000000 |
| 3/31/2025 | 0 | 0 | 38000000 |