---
id: object/table/5847
type: object
title: Table 5847 "Average Cost Calc. Overview"
summary: Table 5847 "Average Cost Calc. Overview" in Base Application (Microsoft.Inventory.Costing). 21 fields, 4 public procedures, 1 events. Present since at least BC23, still in BC30, changed in BC24, BC28.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "28"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 55396c9824d751b6e1adf58954c18f857405b0b12d1499d45be388a6d4362a27
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Inventory/Costing/AverageCostCalcOverview.Table.al
    title: src/Layers/W1/BaseApp/Inventory/Costing/AverageCostCalcOverview.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 5847
name: Average Cost Calc. Overview
namespace: Microsoft.Inventory.Costing
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "28"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 21
  procedures: 5
  events: 1
  subscribers: 0
relations:
  out: 5
  referenced_by: 0
  pages: 1
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 5847 "Average Cost Calc. Overview"

> Table 5847 "Average Cost Calc. Overview" in Base Application (Microsoft.Inventory.Costing). 21 fields, 4 public procedures, 1 events. Present since at least BC23, still in BC30, changed in BC24, BC28.

Base Application · Microsoft.Inventory.Costing · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Inventory/Costing/AverageCostCalcOverview.Table.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Caption | Average Cost Calc. Overview |
| DataClassification | CustomerContent |

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 1 | Entry No. | Integer | — |  |
| 2 | Type | Option | Specifies either that the entry is a summary entry, Closing Entry, or the type that was used in the calculation of the average cost of the item. | OptionCaption: Closing Entry,Increase,Applied Increase,Applied Decrease,Decrease,Revaluation |
| 3 | Valuation Date | Date | Specifies the valuation date associated with the average cost calculation. |  |
| 4 | Item No. | Code[20] | Specifies the number of the item associated with the entry. | TableRelation [Table 27 "Item"](../table/27.md) |
| 5 | Location Code | Code[10] | Specifies the location code associated with the entry. | TableRelation [Table 14 "Location"](../table/14.md) |
| 6 | Variant Code | Code[10] | Specifies the variant of the item on the line. | TableRelation [Table 5401 "Item Variant"](../table/5401.md) ("Item Variant".Code where("Item No." = field("Item No."))) |
| 7 | Cost is Adjusted | Boolean | Specifies whether the cost is adjusted for the entry. |  |
| 11 | Attached to Entry No. | Integer | — | TableRelation [Table 32 "Item Ledger Entry"](../table/32.md) (Item Ledger Entry) |
| 12 | Attached to Valuation Date | Date | — |  |
| 13 | Level | Integer | — |  |
| 21 | Item Ledger Entry No. | Integer | Specifies the number of the item ledger entry that this entry is linked to. | TableRelation [Table 32 "Item Ledger Entry"](../table/32.md) (Item Ledger Entry) |
| 22 | Posting Date | Date | Specifies the posting date for the entry. |  |
| 23 | Entry Type | Enum "Item Ledger Entry Type" | Specifies which type of transaction that the entry is created from. | enum [Enum 78 "Item Ledger Entry Type"](../enum/78.md) |
| 24 | Document Type | Option | Specifies the type of document that the average cost applies to. | OptionCaption: ,Sales Shipment,Sales Invoice,Sales Return Receipt,Sales Credit Memo,Purchase Receipt,Purchase Invoice,Purchase Return Shipment,Purchase Credit Memo,Transfer Shipment,Transfer Receipt,Service Shipment,Service Invoice,Service Credit Memo |
| 25 | Document No. | Code[20] | Specifies a document number for the entry. |  |
| 26 | Document Line No. | Integer | Specifies the document line that the comment applies to. |  |
| 27 | Description | Text[100] | — |  |
| 31 | Quantity | Decimal | Specifies the quantity associated with the entry. |  |
| 32 | Applied Quantity | Integer | — |  |
| 33 | Cost Amount (Expected) | Decimal | Specifies the expected cost in LCY of the quantity posting. <small>via [Page 5847 "Average Cost Calc. Overview"](../page/5847.md)</small> |  |
| 34 | Cost Amount (Actual) | Decimal | Specifies the adjusted cost in LCY of the quantity posting. <small>via [Page 5847 "Average Cost Calc. Overview"](../page/5847.md)</small> |  |

## Keys

- Key1: Entry No. (clustered)
- Key2: Attached to Valuation Date, Attached to Entry No., Type
- Key3: Item Ledger Entry No.

## Events published

- `OnAfterSetItemFilters(var ValueEntry: Record "Value Entry"; AverageCostCalcOverview: Record "Average Cost Calc. Overview")` (integration)

## Procedures

- `CalculateAverageCost(): Decimal`
- `CalculateRemainingQty(): Decimal`
- `CalculateCostAmt(Actual: Boolean): Decimal`
- `SetItemFilters()`

## Relations

- Location Code: TableRelation [Table 14 "Location"](../table/14.md)
- Item No.: TableRelation [Table 27 "Item"](../table/27.md)
- Attached to Entry No.: TableRelation [Table 32 "Item Ledger Entry"](../table/32.md)
- Item Ledger Entry No.: TableRelation [Table 32 "Item Ledger Entry"](../table/32.md)
- Variant Code: TableRelation [Table 5401 "Item Variant"](../table/5401.md)

## Pages and codeunits on this table

- [Page 5847 "Average Cost Calc. Overview"](../page/5847.md) (source table)
- [Codeunit 5847 "Get Average Cost Calc Overview"](../codeunit/5847.md) (codeunit runs on it)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24, BC28

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "table", object_name: "Average Cost Calc. Overview")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
