Hello,
I am having trouble not including similar but different data from a data stream.
I need to be able to keep all columns but I only need them when the SUM of all CASH is greater than 999,999.99 or less than -999,999.99.
Occasionally, identical account numbers exists for different plans, and there is always new data multiple times per day.
How can I SUM the total of cash per ACCT and PLAN while still keeping all columns and then removing all lines that don't fit the criteria (>999,999.99 or <-999,999,99)?
For this example, I need the last line as the CASH amount for all lines meets my criteria but I need to remove the other ACCT and PLAN and lines.
| ACCT | PLAN | F | S | TC | IC | CASH |
999-99-9999F | 74375 | 1234 | 1 | 436 | 10 | 1,939 |
| 999-99-9999F | 74375 | 1234 | 9 | 436 | 10 | 75 |
| 999-99-9999F | 74375 | 1234 | 9 | 436 | 10 | -11 |
| 999-99-9999F | 74375 | 1234 | 9 | 690 | 01 | -181 |
999-99-9999F | 74375 | 1234 | 9 | 436 | 10 | -530 |
| 999-99-9999F | 82831 | AAAA | 2 | 690 | 01 | -1,622,858 |