I'm trying to basically find a way to add a third column that will show me if checks have same codes and if both lastmonthcheck and check have 80 then if there is another check amounts that have the same code but different check amount it will get tagged as 1. example below. If the code is the same but one of the rows has both 80 then even if the 2nd row (with the same code) is 57 then it should get 1. I hope this makes sense
| Code | Check | LastMonthCheck | Max Check |
| 348739 | 80 | 57 | 1 |
| 348739 | 80 | 80 | 1 |
| 348740 | 80 | 80 | 0 |
| 348741 | 80 | 57 | 0 |
| 348742 | 80 | 57 | 1 |
| 348742 | 80 | 80 | 1 |
| 348743 | 80 | 57 | 0 |
| 348743 | 80 | 57 | 0 |