Hello @BorBla ,
Thank you for explaining the problem in a better way.
To solve this, we used a very different approach, as @armingrudd told me that this falls under the category of Item set mining. So, you first need to install this extension to be able to use the node Association Rule Learner (Borgelt) as shown in the below screenshot.
I am also attaching the workflow below. If you have any questions,
Dummy.knwf (102.3 KB)
let us know.
Thanks,
Sanket