# Segment by custom field

**URL:** https://forum.mautic.org/t/segment-by-custom-field/6482
**Category:** Product Support
**Created:** [November 8, 2016, 9:21am UTC](https://forum.mautic.org/t/segment-by-custom-field/6482 "2016-11-08T09:21:24Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![griemer](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/griemer/32/108_2.png) [@griemer](https://forum.mautic.org/u/griemer)
#### Post date: [November 8, 2016, 9:21am UTC](https://forum.mautic.org/t/segment-by-custom-field/6482/1 "2016-11-08T09:21:24Z")

</div>

Hi,  
  
I’ve created a Custom Field ‘Member’ , Data Type is Select.  
  
I have created two Options, Yes and No , default value is No  
  
  
  
Now I’ve created a segment that filters on ‘Visitid URL like …’ . Segment contains 226 contacts  
  
Now when I add an AND filter ‘Member equals Yes’ the segment contains 13 contacts  
  
When I change this to ‘Member equals No’ the segment contains 3 contacts.  
  
  
  
So No -\> 3 , Yes -\> 13 , in total 226? How can this happen?

---

<div class="post-metadata">

### Author: ![griemer](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/griemer/32/108_2.png) [@griemer](https://forum.mautic.org/u/griemer)
#### Post date: [November 8, 2016, 9:21am UTC](https://forum.mautic.org/t/segment-by-custom-field/6482/2 "2016-11-08T09:21:24Z")

</div>

Hi,  
I’ve created a Custom Field ‘Member’ , Data Type is Select.  
I have created two Options, Yes and No , default value is No

Now I’ve created a segment that filters on ‘Visitid URL like …’ . Segment contains 226 contacts  
Now when I add an AND filter ‘Member equals Yes’ the segment contains 13 contacts  
When I change this to ‘Member equals No’ the segment contains 3 contacts.

So No -\> 3 , Yes -\> 13 , in total 226? How can this happen?

---

<div class="post-metadata">

### Author: ![geochatz](https://avatars.discourse-cdn.com/v4/letter/g/c0e974/32.png) [@geochatz](https://forum.mautic.org/u/geochatz)
#### Post date: [November 9, 2016, 11:27am UTC](https://forum.mautic.org/t/segment-by-custom-field/6482/3 "2016-11-09T11:27:34Z")

</div>

I have the same problem. It seems a bug to me. I have created a new Custom Field as member\_of

There are two available values site\_1 and site\_2, and the user can have multiple values (both site\_1 and site\_2). I also set the default value for the custom field to site\_1.

I went to the user and updated his profile by selecting site 1.

When I create a new segment and choose member\_of including site\_1 my segment becomes empty…

---

<div class="post-metadata">

### Author: ![geochatz](https://avatars.discourse-cdn.com/v4/letter/g/c0e974/32.png) [@geochatz](https://forum.mautic.org/u/geochatz)
#### Post date: [November 9, 2016, 11:42am UTC](https://forum.mautic.org/t/segment-by-custom-field/6482/4 "2016-11-09T11:42:26Z")

</div>

Ok. If I use the same value as label for the custom field available values then I can filter but if a member has both of the values (site\_1 and site\_2) then he is excluded by the segment (my segment is member\_of INCLUDING site\_1)

---

<div class="post-metadata">

### Author: ![ninjoan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ninjoan/32/1005_2.png) [@ninjoan](https://forum.mautic.org/u/ninjoan)
#### Post date: [November 9, 2016, 2:25pm UTC](https://forum.mautic.org/t/segment-by-custom-field/6482/5 "2016-11-09T14:25:28Z")

</div>

Have you checked if in those 226 are anonymous leads?
