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...
Suggested Answer

Inventory on Item List

(1) ShareShare
ReportReport
Posted on by 29
Hello, 
 
I have extended the locations table and added global dimensions 1 (branch) and 2 (department).  Would like the items list to show inventory in locations which belong to a certain branch. How do i go about modifying this: 
 
 
        field(50903; /Branch Inventory/; Decimal)
        {
            CalcFormula = Sum(/Item Ledger Entry/.Quantity WHERE(/Item No./ = FIELD(/No./),
                                                                  /Global Dimension 1 Code/ = FIELD(/Global Dimension 1 Filter/),
                                                                  /Global Dimension 2 Code/ = FIELD(/Global Dimension 2 Filter/),
                                                                  /Location Code/ = FIELD(/Location Filter/),
                                                                  /Drop Shipment/ = FIELD(/Drop Shipment Filter/),
                                                                  /Variant Code/ = FIELD(/Variant Filter/),
                                                                  /Lot No./ = FIELD(/Lot No. Filter/),
                                                                  /Serial No./ = FIELD(/Serial No. Filter/),
                                                                  /Unit of Measure Code/ = FIELD(/Unit of Measure Filter/),
                                                                  /Package No./ = FIELD(/Package No. Filter/)));
            Caption = 'Inventory';
            DecimalPlaces = 0 : 5;
            Editable = false;
            FieldClass = FlowField;
 
        }
N/B: will create a inventory field for each branch 
I have the same question (0)
  • Gerardo Rentería García Profile Picture
    25,078 Most Valuable Professional on at
    Inventory on Item List
    Hi
    You could use this "TableFilters" as a "constant expression", setting the dimension value to 1.
    Best regards
    Gerardo
  • Suggested answer
    Nitin Verma Profile Picture
    21,698 Moderator on at
    Inventory on Item List
    Hi,
    Your calcformula property seems correct , but if you are still unable to reterieve the result first check if you have the data basis on the filter you provided else I would suggest to write the code OnAfterGetRecord to get the exact values.
     
    Thanks
    Nitin
     
     

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,377

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,696 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,512 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans