Skip to main content

Notifications

Announcements

No record found.

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?

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

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

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,081 Super User 2024 Season 1 on at
    RE: How can I filter Date with No Value on Nav Query DataItemTableFilter

    Please check this.

    pastedimage1649379347293v1.png

  • Suggested answer
    TeddyH Profile Picture
    TeddyH 12,864 Super User 2024 Season 1 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.

  • Shu Foster Profile Picture
    Shu Foster 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?

  • Shu Foster Profile Picture
    Shu Foster 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
    Shu Foster 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.

  • YUN ZHU Profile Picture
    YUN ZHU 75,561 Super User 2024 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

  • Suggested answer
    TeddyH Profile Picture
    TeddyH 12,864 Super User 2024 Season 1 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

  • Nitin Verma Profile Picture
    Nitin Verma 21,081 Super User 2024 Season 1 on at
    RE: How can I filter Date with No Value on Nav Query DataItemTableFilter

    Please share your code or filters here

  • Shu Foster Profile Picture
    Shu Foster 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".

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,602 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,340 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans