web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Calculate inventory value as of

(0) ShareShare
ReportReport
Posted on by 100

I am building an Inventory Cube and i need to know how the inventory calculation is done in AX. So far, i got this information(query) from the report titled Inventory value by inventory dimension:

select InventSum.ItemId,

         InventTable.ItemName,

         InventSum.PostedQty,

         InventSum.PostedValue

from InventDim

      inner join InventSum on (InventDim.inventDimId = InventSum.InventDimId)

      left outer join InventTable on (InventSum.ItemId = InventTable.ItemId)

where exists (select *

                    from InventTable

                    where InventTable.ItemId = InventSum.ItemId

                              and not (InventTable.ItemType = 2)

                   )

        -- Criteria for search

        and InventSum.LastUPDDatePhysical <= @Date

        and InventDim.DataAreaId = @Company

        and InventDim.configId = @Configuration

        and InventDim.InventColorId = @Source

        and InventDim.InventSiteId = @Site

        and InventDim.InventLocationId = @Warehouse

        and InventDim.wMSLocationId = @Location

        and InventSum.Closed = @Closed

        and not (InventSum.PostedQty = 0

                     and InventSum.PostedValue = 0)

group by InventSum.ItemId,

            InventTable.ItemName,

            InventSum.PostedQty,

           InventSum.PostedValue

order by InventSum.ItemId

 

But the problem is when i run this query i get more results than when i run the report "Inventory value by inventory dimension"

Please help me with the query.

*This post is locked for comments

I have the same question (0)
  • Anders Girke Profile Picture
    10 on at

    Hi Eshan

    In AX2012 R2 Microsoft has done the job for you. The cube is is based on the views generated as part of the Inventory value report. This is done so we share the engine. This makes it easier to maintain when we add new InventTransTypes. Be carefull by allowing inventory dimensions in the cube. You cannot go below Site as all inventTrans must hold a Site and Site must be a Financial inventory dimension. This Means that Product+Site is the cost obejct in all cases. I do ack-knowledge that AX allows Product+All inventory dimensions but this may only apply to a subset of products and Cube and Pivot in Excel cannot destingusih so if you transfer at a lower level the values in the cube will not be correct

  • Community Member Profile Picture
    on at

    Hi Eshan

    Did you come right with this? A client I am working at is using ZAP reporting and they want an inventory movement report which shows both quantities and costs. We used the algorithm in one of your other posts, but we have many more transactions than when compared to the AX stock value reports. To be honest, the data in the ZAP report looks correct - I am battling to understand why some transactions from the AX stock value report has been omitted.

    Thanks

    Jenny

  • Anders Girke Profile Picture
    10 on at

    I would like to know the version we are talking about. The inventory by inventory dimension and inventory by item group cannot be used. Also as mention above stock tracking dimensions cannot be used as these will wrong cost. If you want the actual transitions posted for a period or just balance movement between between inventory, wip and cogs

    I would like to get more details as I believe AX out of box already support your request

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans