Create lists of contacts with a specific number of associated deals from a specific pipeline

I’m trying to create a list of members who have given 25 donations to our org. But when I filter by “number of associated deals”, it ropes in people who have paid for or received free online courses which are in a totally separate deals pipeline.
How do I create a reliable count of the people who have made 25 successful donations and filter out anyone who has not had 25 donations

UPDATE: I think I figured out a solution using a calcuation rollup

Nevertheless, I do think the original request should be possible.