web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

How can I filter Date with No Value on Nav Query DataItemTableFilter

(0) ShareShare
ReportReport
Posted on by 25

Hello 

I am new to Nav Query

I am trying to creating a query through Nav Development Environment with filtering "Requested Receipt Date" is empty

I have tried "<>0" and " ", but it asks me to put a valid date

What is a valid date I should put in order to filter no date ones?

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,688 Moderator on at
    RE: How can I filter Date with No Value on Nav Query DataItemTableFilter

    Hi,

    Please try with ‘<>%1’,0D

    Thanks

  • Shu Foster Profile Picture
    25 on at
    RE: How can I filter Date with No Value on Nav Query DataItemTableFilter

    Thank you but no, it does not work, it still shows "Not a valid Date".

  • Nitin Verma Profile Picture
    21,688 Moderator on at
    RE: How can I filter Date with No Value on Nav Query DataItemTableFilter

    Please share your code or filters here

  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,207 Super User 2025 Season 2 on at
    RE: How can I filter Date with No Value on Nav Query DataItemTableFilter

    SetFilter("Requested Receipt Date",'<>%1',0D); //not empty date

    SetRange("Requested Receipt Date",0D)l; //empty date

  • YUN ZHU Profile Picture
    92,886 Super User 2025 Season 2 on at
    RE: How can I filter Date with No Value on Nav Query DataItemTableFilter

    Hi, just add others' reply.

    Blank date is specified bu 0D in NAV.

    More details: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/date/date-data-type

    pastedimage1649293574576v1.png

    Hope this also helps.

    Thanks

    ZHU

  • Shu Foster Profile Picture
    25 on at
    RE: How can I filter Date with No Value on Nav Query DataItemTableFilter

    Thank you, I have found the answer. it is >01011900 as SQL stores no date in the table as a date from the 1700’s rather than blank.

  • Shu Foster Profile Picture
    25 on at
    RE: How can I filter Date with No Value on Nav Query DataItemTableFilter

    Thank you, I have found the answer, it is >01011900  -as SQL stores no date in the table as a date from the 1700’s rather than blank.

  • Shu Foster Profile Picture
    25 on at
    RE: How can I filter Date with No Value on Nav Query DataItemTableFilter

    Thank you Teddy, I have found the answer, how can I verify the answer?

  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,207 Super User 2025 Season 2 on at
    RE: How can I filter Date with No Value on Nav Query DataItemTableFilter

    Don't remember exactly.

    On the replies, there should be a button or action to verify the answers. Only the original requester can see it.

  • Suggested answer
    Nitin Verma Profile Picture
    21,688 Moderator on at
    RE: How can I filter Date with No Value on Nav Query DataItemTableFilter

    Please check this.

    pastedimage1649379347293v1.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 4,255

#2
Sumit Singh Profile Picture

Sumit Singh 2,665

#3
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 2,401

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans