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) »
  • How to use advanced search to locate intersection of two smart groups
Pages: [1]

Author Topic: How to use advanced search to locate intersection of two smart groups  (Read 687 times)

russmartin

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 4.0.2
  • CMS version: Drupal 7.2
  • MySQL version: 5.0.52
  • PHP version: 5.0.59
How to use advanced search to locate intersection of two smart groups
September 04, 2011, 09:38:49 pm
I am trying to use the advanced search to locate contacts that are in "smart group A" AND in "smart group B".

Using advanced search, I select both of the smart groups and choose the search operator to be "AND". The result set that is returned is not correct. Whether I choose the operator to be AND or OR I get the same [incorrect] result. Both smart groups return the proper results on their own.

In fact, the query shows, "Contacts IN >smart group A or smart group B AND Group Status - "Added"".

Any suggestions on what I might be doing wrong, or alternate ways of achieving this?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: How to use advanced search to locate intersection of two smart groups
September 05, 2011, 09:23:25 am

use the custom search include/exclude contacts in group

http://drupal.demo.civicrm.org/civicrm/contact/search/custom/list&reset=1

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • How to use advanced search to locate intersection of two smart groups

This forum was archived on 2017-11-26.