CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Searching for top 700 donors
Pages: [1]

Author Topic: Searching for top 700 donors  (Read 1282 times)

craftee123

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 0
Searching for top 700 donors
January 07, 2008, 03:22:21 pm
I need to do an export of my top 700 donors for a mailing.  I'm getting the feeling that it is not possible.

First, can I search by someone's total gifts?  I know that in the Contributions tab, it gives a sum, but I have never been able to find a way to search using that number or a field label for that figure.

Also, I don't think I can specify the number of contacts that you want in a search output, but I supposed if I were able to search by a person's total giving, I would just sort by that amount and only export the top 700.

Sarah Craft, Equal Justice USA

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Searching for top 700 donors
January 07, 2008, 08:56:08 pm
Sarah:

Quote
First, can I search by someone's total gifts?
No. Current CiviCRM model does not support aggregate search.

do check http://forum.civicrm.org/index.php/topic,1724.0.html

HTH

kurund
Found this reply helpful? Support CiviCRM

kenlyle

  • I post occasionally
  • **
  • Posts: 116
  • Karma: 7
Re: Searching for top 700 donors
January 17, 2008, 09:31:16 am
Sarah, If you can run this query, either in Access or PHPMyAdmin or another tool, it should start you toward your goal:

SELECT civicrm_contact.display_name, Sum(civicrm_contribution.total_amount) AS SumOftotal_amount
FROM civicrm_contact INNER JOIN civicrm_contribution ON civicrm_contact.id = civicrm_contribution.contact_id
GROUP BY civicrm_contact.display_name;

Please post back.  Access will let you do a Top NNN query...

Best,
Ken

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Searching for top 700 donors

This forum was archived on 2017-11-26.