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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Inventory Value Report

(0) ShareShare
ReportReport
Posted on by

What is the sql to calculate Physical amount posted in the inventory value report?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Mahmoud Hakim Profile Picture
    17,887 on at

    you can use view inventvaluereportview and set condtions and grouping  based on demand

  • Community Member Profile Picture
    on at

    Thanks Crispin

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hello Jeremy,

    If your question is answered, please be so kind and verify the answer.

    Many thanks and best regards,

    Ludwig

  • Community Member Profile Picture
    on at

    Crispin,

    That get me the overall quantity and amount. I am looking to calculate the Financial quantity and Financial amount also.

    InventoryReport.PNG

    What would be the filtering for that?

    Cheers,

    Jeremy

  • Verified answer
    Community Member Profile Picture
    on at

    SELECT-- V.UNIONALLBRANCHID,

    sum(V.qty) FinancialQty

    ,SUM(V.AMOUNT) FinancialAmount

    FROM

    [INVENTVALUETRANSUNIONALL] V JOIN INVENTTABLE i ON i.[PARTITION] = v.[PARTITION]

                       AND i.DATAAREAID = v.DATAAREAID

                       AND i.ITEMID = v.ITEMID

    WHERE UNIONALLBRANCHID IN (5,6) AND TRANSDATE<=CAST('2017-11-30' AS DATE) AND i.ITEMTYPE = 0

  • Verified answer
    Community Member Profile Picture
    on at

    6837.answer.PNG

  • Verified answer
    Community Member Profile Picture
    on at

    To get Physical Quantity and Amount

    SELECT-- V.UNIONALLBRANCHID,

    sum(V.qty) PhysicalQty

    ,SUM(V.AMOUNT) PhysicalAmount

    FROM

    [INVENTVALUETRANSUNIONALL] V JOIN INVENTTABLE i ON i.[PARTITION] = v.[PARTITION]

                       AND i.DATAAREAID = v.DATAAREAID

                       AND i.ITEMID = v.ITEMID

    WHERE UNIONALLBRANCHID NOT IN (5,6) AND TRANSDATE<=CAST('2017-11-30' AS DATE) AND i.ITEMTYPE = 0

  • Verified answer
    Community Member Profile Picture
    on at

    2818.physical.PNG

  • Verified answer
    Community Member Profile Picture
    on at

    To get the Overall Inventory Summary

    SELECT

       v.[PARTITION],

       v.DATAAREAID,

       SUM(v.QTY) AS QTY,

       SUM(v.AMOUNT) AS AMOUNT

    FROM INVENTVALUEREPORTVIEW v

    JOIN INVENTTABLE i ON i.[PARTITION] = v.[PARTITION]

                       AND i.DATAAREAID = v.DATAAREAID

                       AND i.ITEMID = v.ITEMID

    WHERE v.TRANSDATE <= cast('2017-11-30' as date)

       AND i.ITEMTYPE = 0  

    and v.ISPOSTED=1

    GROUP BY

    v.[PARTITION],

    v.DATAAREAID--,

    ORDER BY 1, 2

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Andrew Jones a1x Profile Picture

Andrew Jones a1x 2

#3
GL-01081504-0 Profile Picture

GL-01081504-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans