{"title":"Ad-hoc analysis of inventory data","url":"https://jonas-paprotka.de/docs/ad-hoc-analysis-inventory/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/ad-hoc-analysis-inventory, MicrosoftDocs/dynamics365smb-docs at 46907ac (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/ad-hoc-analysis-inventory","source":{"name":"Business Central application docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-docs","commit":"46907ace177f8d31deba47a2fdb57c3336e66252","date":"2026-11-19"},"checked":"2026-11-19","description":"Learn how to use the data analysis mode to analyze inventory data.","date":"2026-04-01","meta":{"topic":"article"},"outline":[{"level":1,"title":"Ad-hoc analysis of inventory data","slug":"ad-hoc-analysis-of-inventory-data","at":0,"chars":10653},{"level":2,"title":"Inventory ad-hoc analysis scenarios","slug":"inventory-ad-hoc-analysis-scenarios","at":841,"chars":1864},{"level":2,"title":"Example: inventory on-hand","slug":"example-inventory-on-hand","at":2705,"chars":923},{"level":2,"title":"Example: track expiring or old stock","slug":"example-track-expiring-or-old-stock","at":3628,"chars":951},{"level":2,"title":"Example: returned items by return reason","slug":"example-returned-items-by-return-reason","at":4579,"chars":988},{"level":2,"title":"Example: inventory throughput","slug":"example-inventory-throughput","at":5567,"chars":731},{"level":2,"title":"Inventory movements","slug":"inventory-movements","at":6298,"chars":777},{"level":2,"title":"Data foundation for ad-hoc analysis on inventory","slug":"data-foundation-for-ad-hoc-analysis-on-inventory","at":7075,"chars":924},{"level":2,"title":"Get insights into item data with advanced KPIs and summary","slug":"get-insights-into-item-data-with-advanced-kpis-and-summary","at":7999,"chars":2178},{"level":2,"title":"Related information","slug":"related-information","at":10177,"chars":284},{"level":2,"title":"Start a free trial!<https://go.microsoft.com/fwlink/?linkid=847861>","slug":"start-a-free-trialhttpsgomicrosoftcomfwlinklinkid847861","at":10461,"chars":192}],"text":"# Ad-hoc analysis of inventory data\nThis article explains how to use the Data Analysis feature to analyze inventory data directly from list pages and queries. You don't have to run a report or switch to another application, such as Excel. The feature provides an interactive and versatile way to calculate, summarize, and examine data. Instead of running reports using options and filters, you can add multiple tabs that represent different tasks or views on the data. Some examples are \"expiring stock\" or \"top sellers,\" or any other view you can imagine. To learn more about how to use the Data Analysis feature, go to Analyze list and query data with analysis mode<analysis-mode>.\nUse the following list pages for ad-hoc analysis of inventory processes:\n Item Ledger Entries<https://businesscentral.dynamics.com/?page=38&layout=analysis>\n## Inventory ad-hoc analysis scenarios\nUse the Data Analysis feature for quick fact checking and ad-hoc analysis:\n If you don't want to run a report.\n If a report for your specific need doesn't exist.\n If you want to quickly iterate to get a good overview on a part of your business.\nThe following sections provide examples of inventory scenarios in Business Central.\nArea|To...|Open this page in analysis mode|Using these fields\n#example-inventory-on-hand|Get an overview of items that are available in your inventory.|Item Ledger Entries<https://businesscentral.dynamics.com/?page=38&layout=analysis>|Item No., Remaining Quantity\n#example-track-expiring-or-old-stock|Get an overview of items in your inventory that have been on stock for a long time and aren't selling well.|Item Ledger Entries<https://businesscentral.dynamics.com/?page=38&layout=analysis>|Posting Date Year, Posting Date Month, Item No., Posting Date, Entry type, Quantity, and Remaining Quantity.\n#example-returned-items-by-return-reason|Get an overview of goods that customers return, categorized by the return reason. Use this for analysis for quality control.|Item Ledger Entries<https://businesscentral.dynamics.com/?page=38&layout=analysis>|Return Reason Code, Posting Date Month, Quantity , Cost Amount, Posting Date, Document Type, Item No., and Document No. .\nInventory throughput|Get an overview of purchases and sales in your inventory by month or quarter.|Item Ledger Entries<https://businesscentral.dynamics.com/?page=38&layout=analysis>|Posting Date Year, Posting Date Month, Item No., Quantity, Sales Amount, Cost Amount (Actual), and Posting Date Month\n[Inventory movements]|Get an overview of how goods in your inventory move between locations.|Item Ledger Entries<https://businesscentral.dynamics.com/?page=38&layout=analysis>|Location Code, Quantity, Posting Date, Item No.\n## Example: inventory on-hand\nTo analyze items in your inventory that are in stock, follow these steps:\n1. Open the Item Ledger Entries<https://businesscentral.dynamics.com/?page=38&layout=analysis> list, and choose ![Enter analysis mode.] to turn on analysis mode.\n1. Go to the Columns menu and remove all columns (select the box next to the Search field).\n1. Drag the Item No. field to the Row Groups area. Drag the fields in that order.\n1. Drag the field Remaining Quantity to the Values ares.\n1. Set a Not equal filter to 0 on Remaining Quantity. If you don't allow negative stock levels, set a Greater than filter to 0.\n1. Optionally, add other fields to the analysis and maybe pivot on location or other fields.\n1. Rename your analysis tab to Inventory on Hand or something that describes this analysis.\nThe following image shows the result of these steps.\n![Example of how to do an inventory on-hand data analysis.]\n## Example: track expiring or old stock\nTo analyze items in your inventory that have been on stock for a long time and aren't selling well, follow these steps:\n1. Open the Item Ledger Entries<https://businesscentral.dynamics.com/?page=38&layout=analysis> list, and choose ![Enter analysis mode.] to turn on analysis mode.\n1. Go to the Columns menu and remove all columns (select the box next to the Search field on the right).\n1. Drag the Posting Date Year, Posting Date Month and Item No. fields to the Row Groups area. Drag the fields in that order.\n1. In the Columns area, choose the Posting Date, Entry type, Quantity, and Remaining Quantity fields.\n1. Set a Less than filter to Posting Date to define what you mean by \"old\".\n1. Rename your analysis tab to Old stock or something that describes this analysis.\nThe following image shows the result of these steps.\n![Example of how to do a dead stock data analysis on the Item Ledger Entries page.]\n## Example: returned items by return reason\nTo analyze returned items sorted by the reasons for their return, follow these steps:\n1. Open the Item Ledger Entries<https://businesscentral.dynamics.com/?page=38> list.\n1. Add the Return Reason Code field by personalizing the page. On the Settings menu, choose Personalize.\n1. Exit personalization mode.\n1. Choose ![Enter analysis mode.] to turn on analysis mode.\n1. Go to the Columns menu and remove all columns (select the box next to the Search field on the right).\n1. Drag the Return Reason Code and Posting Date Month fields to the Row Groups area. Drag the fields in that order.\n1. Drag the Quantity and Cost Amount fields to the Values area.\n1. Add any other fields that you want in the analysis, and enable them in the Columns area. For example, you might add the Posting Date, Document Type, Item No., and Document No. fields.\n1. Rename your analysis tab to Returned items by return reason or something that describes this analysis.\n## Example: inventory throughput\n1. Open the Item Ledger Entries<https://businesscentral.dynamics.com/?page=38&layout=analysis> list, and choose ![Enter analysis mode.] to turn on analysis mode.\n1. Go to the Columns menu and remove all columns (select the box next to the Search field on the right).\n1. Turn on the Pivot Mode toggle (located above the Search field on the right).\n1. Drag the Posting Date Year, Posting Date Month, and Item No. fields to the Row Groups area.\n1. Drag the Quantity, Sales Amount, and Cost Amount (Actual) fields to the Values area.\n1. Drag the Posting Date Month field to the Column Groups area.\n1. Rename your analysis tab to Inventory throughput by Month or something that describes this analysis.\n## Inventory movements\nTo track inventory movements between locations, follow these steps:\n1. Open the Item Ledger Entries<https://businesscentral.dynamics.com/?page=38&layout=analysis> list, and choose ![Enter analysis mode.] to turn on analysis mode.\n1. Go to the Columns menu and remove all columns (select the box next to the Search field on the right).\n1. Drag the Location Code field to the Row Groups area.\n1. Drag the Quantity field to the Values area.\n1. Add any other fields that you want in the analysis, and enable them in the Columns area. For example, you might add the Item No. field.\n1. Rename your analysis tab to Inventory movements or something that describes this analysis.\n> TIP\n> If you add the Posting Date field, you can also track movements over time.\n## Data foundation for ad-hoc analysis on inventory\nWhen you post a sales order, Business Central updates the customer's account, general ledger, and item ledger entries.\n For each sales order line, an item ledger entry is created in the Item Ledger Entry table (if the sales lines contain item numbers). In addition, sales orders are always recorded in the Sales Shipment Header and Sales Invoice Header tables. To learn more about posting sales, go to ui-post-sales.\nWhen you post a purchase document, Business Central updates the vendor's account, general ledger (G/L), item ledger entries, and resource ledger entries.\n For each purchase line, as applicable, entries are created in the Item Ledger Entry table (if the purchase line is of the Item type). In addition, purchase documents are always recorded in the Purch. Recpt. Header and Purch. Inv. Header tables. See purchasing-how-record-purchases#posting-purchases.\n## Get insights into item data with advanced KPIs and summary\nCopilot gives you faster and more comprehensive item summaries with new KPIs and data points from the Item Statistics page. To open the page, use the Item Statistics action on the Item Card page. The page provides financial and performance metrics for an item across different time periods.\n Current Inventory Value: Track the current inventory value (in local currency), calculated as the sum of Cost Amount (Actual) + Cost Amount (Expected) on posted value entries for this item.\n Expired Inventory Value: Identify obsolete stock for timely action. Applicable for items with enabled item tracking and expiration dates. Calculated as the sum of Cost Amount (Actual) + Cost Amount (Expected) from value entries applied to open item ledger entries with an expiration date that's before the work date.\nThe Sales section displays four time period columns with multiple metrics per period.\nTime periods:\n1. This Fiscal Period - Current accounting period in the fiscal year\n2. This Fiscal Year - Current fiscal year to date\n3. Last Fiscal Year - Previous fiscal year\n4. Lifetime - All transactions since the item was created\nSales metrics:\n Sales Growth Rate (%): Compare current and prior periods to identify demand trends. Calculated as (Sales in the current period in the fiscal year - Sales in the prior period in the fiscal year) ÷ Sales in the prior period in the fiscal year. A positive value indicates growth, while a negative value indicates a decline in sales.\n Net Sales (LCY): View actual revenue after returns and discounts. Calculated as Total sales in the period - Total returns - Total given discounts.\n Gross Margin (%): Assess profitability by comparing revenue to cost of goods sold. Calculated as (Net Sales - COGS) ÷ Net Sales. A higher percentage reflects better profitability.\n Return Rate (%): Monitor product quality and customer satisfaction through return ratios. Calculated as Returned Quantity ÷ Total Sold Quantity. A lower percentage indicates fewer returns and higher product acceptance.\nWhen you turn on the Summarize with Copilot capability, you automatically enable these enhancements.\n## Related information\nAnalyze list and query data with analysis mode<analysis-mode>\ninventory-analytics-overview\nAnalytics, business intelligence, and reporting overview<reports-bi-reporting>\nInventory overview<inventory-manage-inventory>\nWork with Business Central<ui-work-product>\n## Start a free trial!<https://go.microsoft.com/fwlink/?linkid=847861>\nFind free e-learning modules for Business Central here<https://learn.microsoft.com/training/dynamics365/business-central>"}