Hello Community,
here's a hard one for you: I have a dataset with two columns with account numbers. Whenever either of the account numbers is the same for two rows, I need to establish a charging rule. Accounts are charged -1 if they are inactive for each record but they are charged only once if they are active (no matter how many rows there are that fulfill this). If the records are both mixed between active and inactive, the account is charged -1 for each inactive, and just 1 for each active.
Do you have any easy way to do this? Ideally, I'd have a new column "charge code" with 1 or -1 for each records, obviously excluding doubles as stated above..
Thank you!