Then you need to change your TO search to do group...
# general
a
Then you need to change your TO search to do grouping... applied to transaction and applying transaction joins, both works or are linked at the line level, so your mainline can't be set to true.