We added the option to group by the Analysis tab by Campaign.
So to create such a query do the following steps.
1) Go to the Analysis Query Tab.
2) Choose the Campaigns you want to query.
3) Enter the Amount you are targeting (Example >= 500).
4) Enter the number of campaigns that you want to check if he reached this amount. If you want any just enter a 1.
For more detailed explanation of each option on this tab refer to this link. https://jlssolutions.com/QA/57/how-do-i-use-the-analysis-query-tab