# Filtering dataset by NOT condition

**URL:** <https://forum.wixstudio.com/t/filtering-dataset-by-not-condition/30506>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [October 22, 2020, 2:26pm UTC](https://forum.wixstudio.com/t/filtering-dataset-by-not-condition/30506 "2020-10-22T14:26:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![orhirschhorn14](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/orhirschhorn14/32/23213_2.png) [@orhirschhorn14](https://forum.wixstudio.com/u/orhirschhorn14)\
**Post date:** [October 22, 2020, 2:26pm UTC](https://forum.wixstudio.com/t/filtering-dataset-by-not-condition/30506/1 "2020-10-22T14:26:39Z")

</div>

Hello everyone, i have a collection with array of object field,  
each object has “date” property includes string represents a date like “10/22/2020”

Now i want to filter the dataset based on all items that doesn’t include this date

I found only contains condition, looking for something like NOT Contains  
Im aware of NOT condition but im not sure how to use it.  
any help?

---

<div class="post-metadata">

**Author:** ![volkaertskristof](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/volkaertskristof/32/18158_2.png) [@volkaertskristof](https://forum.wixstudio.com/u/volkaertskristof)\
**Post date:** [October 22, 2020, 3:03pm UTC](https://forum.wixstudio.com/t/filtering-dataset-by-not-condition/30506/2 "2020-10-22T15:03:11Z")

</div>

Hi orhirschhorn  
If you go to settings of the dataset, and then to filter, there is a option called is not, or does not contain.

if u want to use it in code there is  
.not()  
or  
.ne()

> **[setFilter - Velo API Reference - Wix.com](https://www.wix.com/velo/reference/wix-dataset/dataset/setfilter)**
>
> Sets the dataset filter. The setFilter() function filters out items that don't match the filter criteria. The WixDataFilter object is created by calling the ...

kind regards  
Kristof.

---

<div class="post-metadata">

**Author:** ![orhirschhorn14](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/orhirschhorn14/32/23213_2.png) [@orhirschhorn14](https://forum.wixstudio.com/u/orhirschhorn14)\
**Post date:** [October 22, 2020, 3:17pm UTC](https://forum.wixstudio.com/t/filtering-dataset-by-not-condition/30506/3 "2020-10-22T15:17:36Z")

</div>

Thanks for your reply, what can i do if the field I’m filtering by is an array of objects?

i need something like !hasSome, any idea?
