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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Filter on Report is not working

(0) ShareShare
ReportReport
Posted on by 50

Hi All,

           I am doing a report in that I am giving the  setfilter value true for only advance invoice field, but in the report it is taking the false value of the advance  invoice field, In the report filters also I am setting the advance invoice field to true, but from that filter also it is taking the false value only, can anyone help me.

pastedimage1678371983500v1.png

pastedimage1678372046031v2.png

Thanks & Regards

  • Suggested answer
    Mohana Yadav Profile Picture
    61,260 Super User 2026 Season 2 on at

    try

    Setrange("Advance Invoice", true);

    Setfilter("Remaining Amount", '<>0');

  • Sarath9999 Profile Picture
    50 on at

    Hi Mohana,

             I tried the setrange but it is also not working, it is showing the advance invoice false values only.

    Thanks & Regards,

    Satish.

  • Suggested answer
    NAV_with_Narang Profile Picture
    2,410 Moderator on at

    Instead of SETRANGE on OnPreDataItem, you can use the below Data Item property

    Illustrations/Documents:

    https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-dataitemtableview-property 

    pastedimage1678376827498v1.png

      dataitem("Purchase Header"; "Purchase Header")
        {
            DataItemTableView = SORTING("Document Type", "No.") WHERE("Document Type" = CONST("Blanket Order"));
        }

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 633 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 419 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 236 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans