Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Report design - How to add greater than zero filter

(0) ShareShare
ReportReport
Posted on by 90

Hello Experts,

I'm new to report designing.

I designed a simple report to generate item's quantity based on expiration date range. On generating the report, I'm getting items with quantity value and also zero quantities.

How can I filter this out? I only need items with values  

Kindly advise 

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 77,970 Super User 2025 Season 1 on at
    RE: Report design - How to add greater than zero filter

    Hi, If you try to modify it in the Development Environment, a development license is required.

    But if you just want to modify the RDLC file, you can use the following method to update, which does not require a development license and AL project.

    pastedimage1647478399863v1.png

    pastedimage1647478416087v2.png

    Hope this will help.
    Thanks.

    ZHU

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 997 Moderator on at
    RE: Report design - How to add greater than zero filter

    The RDLC solution does not require license.

    Doing it in the AL code only requires license if you run on-prem.

  • joshtechsolutions Profile Picture
    joshtechsolutions 4,549 on at
    RE: Report design - How to add greater than zero filter

    Hi,

    May I know do you need a development license to do the above?

    Thank you!

  • Dynamics 365 F7O Profile Picture
    Dynamics 365 F7O 90 on at
    RE: Report design - How to add greater than zero filter

    Awesome

  • Dynamics 365 F7O Profile Picture
    Dynamics 365 F7O 90 on at
    RE: Report design - How to add greater than zero filter

    Thank you ZHU &  Nitin, you guys are a life safer. Issue resolved...

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 77,970 Super User 2025 Season 1 on at
    RE: Report design - How to add greater than zero filter

    Hi, The method provided by Nitin is the most common, it does not generate rows with zero quantities when generating report data.

    Here is a method only on RDLC file, you can also refer to it.

    https://www.sourcecodester.com/tutorials/visual-basic-net/4883/suppress-row-if-value-zero-0-using-rdlc-report.html

    Hope this helps.

    Thanks.

    ZHU

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,284 Moderator on at
    RE: Report design - How to add greater than zero filter

    Hi,

    please go to the item data item choose properties and then use property calcfield = inventory

    after doing above steps just go to Onaftergetrecord trigger of the data item and here you can write below conditions 

    If rec.inventory =0 then

    currreport.skip

    it will skip those records which has 0 quantity 

    hope it will help you.

    thanks

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans