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

Taking average cost to zero

(0) ShareShare
ReportReport
Posted on by 265

I am trying to reset an average cost. I am aware of item revaluation journal. However, I was trying to get it to go to zero - i.e. take all quantity out of stock (there is stock only at 1 location). However, I am seeing that does not take the average cost to zero. Therefore, when I put inventory back in, the new average cost is not the cost that I've entered. Is that a way to get that average cost to go to zero? It tried adjust cost - item entries but maybe I did something incorrectly?

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Taking average cost to zero

    LB,

    I will demonstrate the same process in my Cronus Sandbox. First Inventory Setup shows this for Average:

    pastedimage1623169359916v1.png

    Now lets take 1 Item, Costing Method Average, and reduce to 0.

    pastedimage1623169422754v2.png

    pastedimage1623169966037v3.png

    pastedimage1623169989588v4.png pastedimage1623170028391v5.png

    pastedimage1623171831395v6.png

    Now I will add some Inventory, today, for 5.00.

    Pic 1 - This defaults the Average.

    pastedimage1623171997527v7.png

    Pic 2 - Change to $5.

    pastedimage1623172048333v8.png pastedimage1623172079274v9.png

    Hope this helps.

    Thanks,

    Steve

  • Suggested answer
    MahGah Profile Picture
    15,435 on at
    RE: Taking average cost to zero

    Hi

    Can you try "Item Revaluation Journals". See below article for more info.

    https://www.archerpoint.com/blog/Posts/revaluing-inventory-microsoft-dynamics-nav-revaluation-journal

    Thanks 

  • LB_Pgh Profile Picture
    265 on at
    RE: Taking average cost to zero

    Steve,

    I read through all of this from one of your previous posts and I am still confused.

    My settings are 

    pastedimage1623090115789v1.png

    So, if I have a certain quantity on-hand and I do a journal entry at the current average cost (also unit cost * quantity = inventory valuation) - I then see the quantity on-hand as 0 but there is still an average cost. How can there still be an average cost. 

    When I enter a new quantity at the correct average cost, that cost 'remaining' is skewing it. I have worked with average costs for a long time in many systems and that is one way that you could reset it - remove all inventory to take it to zero and then return it at correct cost. 

    I did the journal entry to remove all stock  and then I also did Adjust Cost - Item Entries (which based on my setup should not even be needed).


    What am I still missing?


    Thanks so much 

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Taking average cost to zero

    LB,

    This all depends on how you have setup the Average Cost Calculation, on Inventory Setup. Below is how it works:

    The average cost of an item is calculated with a periodic weighted average, based on the average cost period that is set up in Business Central. The valuation date is set automatically.

    Setting Up Average Cost Calculation

    The following table describes the two fields on the Inventory Setup page that must be filled to enable average cost calculation.

    SETTING UP AVERAGE COST CALCULATION
    Field Description
    Average Cost Period Specifies which period the average cost is calculated in. The following options exist:

    - Day
    - Week
    - Month
    - Accounting Period

    All inventory decreases that are posted in the average cost period receive the average cost calculated for that period.
    Average Cost Calc. Type Specifies how the average cost is calculated. The following options exist:

    - Item
    - Item, Variant, and Location
    With this option, the average cost is calculated for each item, for each location, and for each variant of the item. This means that the average cost of this item depends on where it is stored and which variant of the item that you have selected, such as color.

     Note - You can only use one average cost period and one average cost calculation type in a fiscal year.

    The Accounting Periods page shows which average cost period and which average cost calculation type is in effect during that period, for each accounting period.

    Calculating Average Cost

    When you post a transaction for an item that uses the Average costing method, an entry is created in the Avg. Cost Adjmt. Entry Point table. This entry contains the transaction’s item number, variant code, and location code. The entry also contains the Valuation Date field, which specifies the last date of the average cost period in which the transaction was posted.

     Note - This field should not be confused with the Valuation Date field in the Value Entry table, which shows the date when the value takes effect and is used to determine the average cost period in which the value entry belongs.

    The average cost of a transaction is calculated when the item’s cost is adjusted. A cost adjustment uses the entries in the Avg. Cost Adjmt. Entry Point table to identify which items (or items, locations, and variants) to calculate average costs for. For each entry with a cost that has not been adjusted, the cost adjustment uses the following to determine the average cost:

    • Determines the cost of the item at the start of the average cost period.
    • Adds the sum of the inbound costs that were posted during the average cost period. These include purchases, sales returns, positive adjustments, and production and assembly outputs.
    • Subtracts the sum of the costs of any outbound transactions that were fixed-applied to receipts in the average cost period. These typically include purchase returns and negative outputs.
    • Divides by the total inventory quantity for the end of the average cost period, excluding inventory decreases that are being valued.

    The calculated average cost is then applied to the inventory decreases for the item (or item, location, and variant) with posting dates in the average cost period. If any inventory increases exist that were fixed applied to inventory decreases in the average cost period, then the calculated average cost is forwarded from the increase to the decrease.

    Example: Average Cost Period = Day

    The following example shows the effect of calculating the average cost based on an average cost period of one day. The Average Cost Calc. Type field on the Inventory Setup page is set to Item.

    The following table shows item ledger entries for the sample average-cost item, ITEM1, before the Adjust Cost - Item Entries batch job has been run.

    EXAMPLE: AVERAGE COST PERIOD = DAY
    Posting Date Item Ledger Entry Type Quantity Cost Amount (Actual) Entry No.
    01-01-20 Purchase 1 20.00 1
    01-01-20 Purchase 1 40.00 2
    01-01-20 Sale -1 -20.00 3
    02-01-20 Sale -1 -40.00 4
    02-02-20 Purchase 1 100.00 5
    02-03-20 Sale -1 -100.00 6

     Note

    Because cost adjustment has not yet occurred, the values in the Cost Amount (Actual) field of the inventory decreases corresponding to the inventory increases that they are applied to.

    The following table shows the entries in the Avg. Cost Adjmt. Entry Point table that apply to value entries resulting from the item ledger entries in the preceding table.

    TABLE 3
    Item No. Variant Code Location Code Valuation Date Cost is Adjusted
    ITEM1 BLUE 01-01-20 No
    ITEM1 BLUE 02-01-20 No
    ITEM1 BLUE 02-02-20 No
    ITEM1 BLUE 02-03-20 No

    The following table shows the same item ledger entries after the Adjust Cost - Item Entries batch job has been run. The average cost per day is calculated and applied to the inventory decreases.

    TABLE 4
    Posting Date Item Ledger Entry Type Quantity Cost Amount (Actual) Entry No.
    01-01-20 Purchase 1 20.00 1
    01-01-20 Purchase 1 40.00 2
    01-01-20 Sale -1 -30.00 3
    02-01-20 Sale -1 -30.00 4
    02-02-20 Purchase 1 100.00 5
    02-03-20 Sale -1 -100.00 6

    Example: Average Cost Period = Month

    The following example shows the effect of calculating the average cost based on an average cost period of one month. The Average Cost Calc. Type field on the Inventory Setup page is set to Item.

    If the average cost period is one month, then only one entry is created for each combination of item number, variant code, location code, and valuation date.

    The following table shows item ledger entries for the sample average-cost item, ITEM1, before the Adjust Cost - Item Entries batch job has been run.

    EXAMPLE: AVERAGE COST PERIOD = MONTH
    Posting Date Item Ledger Entry Type Quantity Cost Amount (Actual) Entry No.
    01-01-20 Purchase 1 20.00 1
    01-01-20 Purchase 1 40.00 2
    01-01-20 Sale -1 -20.00 3
    02-01-20 Sale -1 -40.00 4
    02-02-20 Purchase 1 100.00 5
    02-03-20 Sale -1 -100.00 6

     Note

    Because cost adjustment has not occurred yet, the values in the Cost Amount (Actual) field of the inventory decreases corresponding to the inventory increases that they are applied to.

    The following table shows the entries in the Avg. Cost Adjmt. Entry Point table that apply to value entries resulting from the item ledger entries in the preceding table.

    TABLE 6
    Item No. Variant Code Location Code Valuation Date Cost is Adjusted
    ITEM1 BLUE 01-31-20 No
    ITEM1 BLUE 02-28-20 No

     Note

    The valuation date is set to the last day in the average cost period, which in this case is the last day of the month.

    The following table shows the same item ledger entries after the Adjust Cost - Item Entries batch job has been run. The average cost per month is calculated and applied to the inventory decreases.

    TABLE 7
    Posting Date Item Ledger Entry Type Quantity Cost Amount (Actual) Entry No.
    01-01-20 Purchase 1 20.00 1
    01-01-20 Purchase 1 40.00 2
    01-01-20 Sale -1 -30.00 3
    02-01-20 Sale -1 -65.00 4
    02-02-20 Purchase 1 100.00 5
    02-03-20 Sale -1 -65.00 6

    The average cost of entry number 3 is calculated in the average cost period for January, and the average cost for entries 4 and 6 is calculated in the average cost period for February.

    To get the average cost for February, the average cost of the piece received in inventory (100.00) is added to the average cost at the beginning of the period (30.00). The sum of the two (130.00) is then divided by the total quantity in inventory (2).This gives the resulting average cost of the item in the February period (65.00). The average cost is assigned to the inventory decreases in the period (entries 4 and 6).

    Setting the Valuation Date

    The Valuation Date field in the Value Entry table is used to determine in which average cost period an inventory decrease entry belongs. This also applies to work in process (WIP) inventory.

    The following table shows the criteria that are used to set the valuation date.

    SETTING THE VALUATION DATE
    Scenario Posting Date Valued Quantity Revaluation Valuation Date
    1 Positive No Posting date of item ledger entry
    2 Later than the latest valuation date of applied value entries Negative No Posting date of item ledger entry
    3 Earlier than the latest valuation date of applied value entries Positive No Latest valuation date of the applied value entries
    4 Negative Yes Posting date of the revaluation value entry

    Example

    The following table of value entries illustrates the different scenarios.

    EXAMPLE
    Scenario Posting Date Item Ledger Entry Type Valuation Date Valued Quantity Cost Amount (Actual) Item Ledger Entry No. Entry No.
    1 01-01-20 Purchase 01-01-20 2 20.00 1 1
    2 01-15-20 (Item Charge) 01-01-20 2 8.00 1 2
    3 02-01-20 Sale 02-01-20 -1 -14.00 2 3
    4 03-01-20 (Revaluation) 03-01-20 1 -.4.00 1 4
    5 02-01-20 Sale 03-01-20 -1 -10.00 3 5

     Note

    In entry number 5 in the preceding table, the user has entered a sales order with a posting date (02-01-20) that comes before the latest valuation date of applied value entries (03-01-20). If the corresponding value in the Cost Amount (Actual) field for this date (02-01-20) were used for this entry, then it would be 14.00. This would give a situation where the quantity on inventory is zero, but the inventory value is –4.00.

    To avoid such a quantity-value mismatch, the valuation date is set to equal the latest valuation date of the applied value entries (03-01-20). The value in the Cost Amount (Actual) field becomes 10.00 (after revaluation), which means that the quantity on inventory is zero, and the inventory value is also zero.

     Caution

    Because the Inventory Valuation report is based on posting date, the report will reflect any quantity-value mismatches in scenarios as in the above example.

    If the quantity on inventory is less than zero after posting the inventory decrease, then the valuation date is first set to the posting date of the inventory decrease. This date may be changed later, according to the rules described in the note earlier in this section, when the inventory increase is applied.

    Recalculating Average Cost

    Valuing inventory decreases as a weighted average would be straightforward if purchases were always invoiced before sales are invoiced, postings were never backdated, and you never made mistakes. However, the reality is somewhat different from this ideal.

    As illustrated in the examples in this topic, the valuation date is defined as the date from which the value entry is included in the average cost calculation. This gives you the flexibility to do the following for items using the Average costing method:

    • Invoice the sale of an item before the purchase of the item has been invoiced.
    • Backdate a posting.
    • Recover an incorrect posting.

     Note - Another reason for this flexibility is fixed application.

    Because of this flexibility, you may have to recalculate the average cost after the related posting has occurred. For example, if you post an inventory increase or decrease with a valuation date that comes before one or more inventory decreases. The recalculation of the average cost will occur automatically when you run the Adjust Cost - Item Entries batch job, manually or automatically.

    It is possible to change the inventory valuation base within an accounting period by changing the Average Cost Period field and the Average Cost Calc. Type field. However, this should be done with care and in agreement with an auditor.

    Example

    The following example illustrates how the average cost is recalculated when a late posting is introduced on a date that comes before one or more inventory decreases. The example is based on an average cost period of Day.

    The following table shows the value entries that exist for the item before the posting is introduced.

    EXAMPLE
    Valuation Date Quantity Cost Amount (Actual) Entry No.
    01-01-20 1 10.00 1
    01-02-20 1 20.00 2
    02-15-20 -1 -15.00 3
    02-16-20 -1 -15.00 4

    The user posts an inventory increase (entry number 5) with a valuation date (01-03-20) that comes before one or more inventory decreases. To balance the inventory, the average cost must be recalculated and adjusted to 17.00.

    The following table shows the value entries that exist for the item after entry number 5 is introduced.

    TABLE 11
    Valuation Date Quantity Cost Amount (Actual) Entry No.
    01-01-20 1 10.00 1
    01-02-20 1 20.00 2
    01-03-20 1 21.00 5
    02-15-20 -1 -17.00 3
    02-16-20 -1 -17.00 4

    Hope this helps.

    Thanks,

    Steve

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,233 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,923 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans