Hello everyone,
Been stuck on this problem for a while now. I am not able to think through the logic and implementation using alteryx to achieve the desired results.
There's two data sets, given below-
Data set 1
| Risk ID | Rule ID | Code |
| FR01 | 00Q | FBREV |
| FR01 | 00Q | FBREV1 |
| FR01 | 00Q | FBREV2 |
| FR02 | 02D | FBREV |
| FR05 | 02D | FBREV12 |
The combination of risk and rule ID in the first data set leads to the unique list of codes.
Data set 2
| Column1 | Code |
| User1 | FBREV |
| User1 | FBREV1 |
| User2 | FBREV |
Users are tagged with codes that they use.
When they use codes that are in the same Risk and Rule ID family, it is a violation.
I just want to be able to flag those users who have violated this rule.
In the above data sets, User1 has violated the rule as he used two codes (FBREV and FBREV1). Both of the codes fall under the (FR01+ 00Q) rule. Hence I need to be able to tag User1 as a rule violator.
I have been breaking my head over this for a few days now.
Any help is highly appreciated.
Thanks so much in advance.
Rev