# Filter data

**URL:** <https://forum.radzen.com/t/filter-data/4830>\
**Category:** Blazor Server\
**Created:** [September 2, 2020, 8:13pm UTC](https://forum.radzen.com/t/filter-data/4830 "2020-09-02T20:13:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnmu](https://forum.radzen.com/letter_avatar_proxy/v4/letter/j/b9bd4f/32.png) [@johnmu](https://forum.radzen.com/u/johnmu)\
**Post date:** [September 2, 2020, 8:13pm UTC](https://forum.radzen.com/t/filter-data/4830/1 "2020-09-02T20:13:09Z")

</div>

I have a table with a date field and I want to load the data based on whether the date field is null

but when I add a filter in Radzen I am forced by the UI to choose a date value rather than null. I have tried

var blahResult = await db.GetTable(new Query() { Filter = $@"i =\> i.Actioned \> DateTime.Parse("1900-01-01T00:00:00.000Z")", OrderBy = $"Created asc" });

but this won't compile because there appears to be a problem with the "" around the date.

I have tried a raw query:

var blahResult= await db.GetTable(new Query() { Filter = $@"i =\> i.Actioned ==null", OrderBy = $"Created asc" });

but this throws an unhandled error when I load the page.

What am i missing?

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [September 3, 2020, 6:12am UTC](https://forum.radzen.com/t/filter-data/4830/2 "2020-09-03T06:12:55Z")

</div>

You can both select date or write expression:

 ![image](https://forum.radzen.com/uploads/default/original/2X/5/5cbe63a98676497bd4db79372e1ab81af814ce9e.png)  
 ![image](https://forum.radzen.com/uploads/default/original/2X/2/2e9ddf8be1ed0f8cf1237d2038816c0c3b7f377a.png)  
 ![image](https://forum.radzen.com/uploads/default/original/2X/d/df5cbc84a8710153ecd7ef0bba45f8cc24441c83.png)

---

<div class="post-metadata">

**Author:** ![johnmu](https://forum.radzen.com/letter_avatar_proxy/v4/letter/j/b9bd4f/32.png) [@johnmu](https://forum.radzen.com/u/johnmu)\
**Post date:** [September 3, 2020, 10:26am UTC](https://forum.radzen.com/t/filter-data/4830/3 "2020-09-03T10:26:53Z")

</div>

Vladimir,

Many thanks, that works.

John
