1

How can I build a search for contacts that match two criteria?

1) The contact has contributed in the last 30 days;

AND

2) The contact has not contributed another donation within the last 12 months.

In other words, I'd like to select people who have donated for the first time during last 12 months.

4 Answers 4

1

Not sure how I would do that with a search, but in general you might want to use CiviRules for donor segmentation? Details can be found here:https://wiki.civicrm.org/confluence/display/CRMDOC/CiviRules+Cookbook with some examples.

5
  • Does CiviRules work good with 4.7.14? Would you kindly share a link that explains how to enable this extension?
    – Aivars
    Commented Jan 26, 2017 at 11:32
  • Enabling the extension can be done in the standard way, if you do not know how to do this I would suggest you check docs.civicrm.org/user/en/stable/introduction/extensions. Commented Jan 26, 2017 at 11:34
  • We have tested CiviRules with 4.6, although I know some organizations have tested it against 4.7. We are likely to upgrade it to 4.7 sometime this year when our customers upgrade. Commented Jan 26, 2017 at 11:35
  • Can you expand a bit about 4.7, how does it work according to your information?
    – Aivars
    Commented Jan 29, 2017 at 20:12
  • That is a strange question to me. I am not a supplier of software products but a sharer of what we made.....if it has been tested with 4.7 it does what the testers have approved? They do not report to me? Commented Jan 30, 2017 at 7:07
1

You should have a look at the contribution reports, particularly the SYBUNT one. Also some reports have a filter that let's you search explicitly for first contributions by a donor.

2
  • How can I even change the year of "This year" from 2011 which is set by default?
    – Aivars
    Commented Jan 29, 2017 at 20:11
  • 2
    You should be able to slect the current year in the "filter tab" of the sybunt report (at least I was able to do that).
    – Fabian
    Commented Jan 30, 2017 at 15:49
1

Sounds like a job for Summary Fields extension

It'll do lots of roll up calculations and store them to make a lot of contribution-related searches of contacts much faster.

Then you can look for contacts that have a value of "Date of Last Contribution" within the last 3 months, and have the value "Total Contributions in the Last 12 Months" equal to the amount "Amount of the last Contribution" - you can do that with the search builder for example.

4
  • The problem with this scenario is that "Total Contributions in the Last 12 Months" returns the donation amount (sum), not the times of donations (count). What I would need for this purpose is the option Count of Contributions in the Last 12 month in Summary Fields.
    – Aivars
    Commented Jan 27, 2017 at 14:20
  • 1
    You're right, so here's another way - look for where the Total Contributions in the Last 12 Months = The amount of the last contribution. Updating my answer above.
    – Alan Dixon
    Commented Jan 27, 2017 at 20:38
  • I get the idea, but I don't understand how can I search for Contacts whose Total Contributions in the Last 12 Months match The Amount of the Last Contribution using Search builder (or any other CiviCRM tool for that matter). Could you please explain?
    – Aivars
    Commented Jan 29, 2017 at 20:32
  • You're right again, I was indulging in wishful thinking, there's no way I can see how to compare two fields in those interfaces. Maybe back to working with the extension maintainers to see how to add a new field containing the number of contributions in the past year?
    – Alan Dixon
    Commented Jan 30, 2017 at 16:46
0

I'm not sure if this is possible with one search but other approach could be to save the two searches separately as smart groups and then build a new search for contacts that are in the two groups at once.

4
  • Can you name what criteria to use for this purpose in each search?
    – Aivars
    Commented Jan 26, 2017 at 11:50
  • I tried to figure out how to create a group which contains contacts with donations in last 30 days and NOT the contacts with donation in 11 months before that. i.sstatic.net/e3dwR.jpg
    – Aivars
    Commented Jan 26, 2017 at 12:06
  • I think here you can find some more hints civicrm.stackexchange.com/questions/114/… Commented Jan 26, 2017 at 12:07
  • Nice hints, but does not help to solve my problem. :(
    – Aivars
    Commented Jan 27, 2017 at 14:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.