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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Finding Individuals Without Birthdays and/or Relationships?
Pages: [1]

Author Topic: Finding Individuals Without Birthdays and/or Relationships?  (Read 998 times)

davidshq

  • I post occasionally
  • **
  • Posts: 46
  • Karma: 0
    • Dave Enjoys
  • CiviCRM version: 4.4.3
  • CMS version: WordPress
  • MySQL version: 5
  • PHP version: 5
Finding Individuals Without Birthdays and/or Relationships?
July 11, 2013, 11:27:56 am
I'm wondering if there is an easy way for me to find records where the contact doesn't have a birthday or they don't have a relationship (perhaps even specifying a spousal relationship)? Maybe such a custom search report already exists?
Thanks,
Dave
- http://www.daveenjoys.com

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: Finding Individuals Without Birthdays and/or Relationships?
July 11, 2013, 12:51:47 pm
You can use the search builder to find folks whose Date of Birth is NULL, but I can't think of a way to find someone without a relationship.  In theory, you could put everyone that DID have a spousal relationship into a smart group ("Has Spouse group"), then use the Search builder to say, "Date of Birth IS NULL and Group != "Has Spouse group", but Civi 4.3 has a bug where you can't search correctly for the absence of a group using Search Builder.

Oh - maybe you can use the Custom Search Include/Exclude group?  It's a bit convoluted, but you can create three groups - one that includes everyone, a second group that includes folks whose DOB is NULL, and a third group of folks who have a spousal relationship.  Then use the include/exclude search to include the first group and exclude the second and third groups.
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Finding Individuals Without Birthdays and/or Relationships?

This forum was archived on 2017-11-26.