Answers.Body: <p>When you remove someone from a group, the status of their group membership is changed from 'Added' to 'Removed', so try adding another filter on status:</p>
  
  <p><code>CiviCRM Groups: Contact Status (= Added)</code> </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-05-23T18:18:09.743Z
Answers.LastActivityDate: 2017-05-23T18:18:09.743Z
Answers.UserDisplayName: Aidan
Body: <p>We have a directory (along with a Leaflet map) of our affiliates. Currently, the view is filtering the map and accompanying table of contacts based on the group ID (e.g. 200 = current affiliates). </p>
  
  <p>What I've noticed is that when we remove an affiliate from said group, rather than delete them, the contact record still shows up in the Drupal view. I've added the "CiviCRM Groups: Is Active" filter, however that doesn't seem to be working.</p>
  
  <p>Right now, these are my filters and this is the new filter setup I provided to the view:</p>
  
  <p>CiviCRM Address: State/Province (exposed)  AND
  CiviCRM Address: City / Suburb (exposed)  AND
  CiviCRM Contacts: Display Name (exposed)</p>
  
  <p>AND</p>
  
  <p>CiviCRM Groups: Group ID (= 200)  AND
  CiviCRM Groups: Is Active (True)</p>
  
  <p>Any ideas on what I'm doing wrong?</p>
  
Tags: <drupal><drupal-views>
Title: Only Exposing CiviCRM Contact from Active Group in Drupal Views?
ThreadText: # Only Exposing CiviCRM Contact from Active Group in Drupal Views?
  
  (Asked by: username_0 on 2017-05-23)
  
  We have a directory (along with a Leaflet map) of our affiliates. Currently, the view is filtering the map and accompanying table of contacts based on the group ID (e.g. 200 = current affiliates).
  
  What I've noticed is that when we remove an affiliate from said group, rather than delete them, the contact record still shows up in the Drupal view. I've added the "CiviCRM Groups: Is Active" filter, however that doesn't seem to be working.
  
  Right now, these are my filters and this is the new filter setup I provided to the view:
  
  CiviCRM Address: State/Province (exposed) AND
  CiviCRM Address: City / Suburb (exposed) AND
  CiviCRM Contacts: Display Name (exposed)
  
  AND
  
  CiviCRM Groups: Group ID (= 200) AND
  CiviCRM Groups: Is Active (True)
  
  Any ideas on what I'm doing wrong?
  
  **Tags:** drupal, drupal-views
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-05-23. Score: 4 | Accepted answer
  
  When you remove someone from a group, the status of their group membership is changed from 'Added' to 'Removed', so try adding another filter on status:
  
  `CiviCRM Groups: Contact Status (= Added)`
  
  
  ---
  
  