I am need to add the column "Code Change" after determining what tickets were changed or not changed. I need the "Code Change" column only to reflect the comment on the line that was changed/not changed. To determine if the ticket code has changed, I am using the "Units" column to identify if there is a positive and negative for the same ticket and code. If there is then the ticket has a code change and the "new line" will need to reflect the comment. If the "Units" column doesn't have a positive and negative for the same ticket and code then it will need to reflect "no change". Suggestions for best solution?
| Visit Date | Ticket Number | Code | Units | Provider | Code Change |
4/12/2019 | 439315 | 99214 | 1 | Jane Doe | |
| 4/12/2019 | 439315 | 99214 | -1 | Jane Doe | |
| 4/12/2019 | 439315 | 99213 | 1 | Jane Doe | Up Code |
| 4/12/2019 | 439326 | 99213 | 1 | John Smith | |
| 4/12/2019 | 439326 | 99213 | -1 | John Smith | |
| 4/12/2019 | 439326 | 99214 | 1 | John Smith | Down Code |
| 4/12/2019 | 439324 | 99203 | 1 | Jill Hill | No Change |
| 4/12/2019 | 439339 | 99202 | 1 | Sam Silly | No Change |