Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Unanswered

Difference between InventSum.PhysicalInvent and InventSum.PhysicalInventCalculated()

Posted on by 240

Hi,

I have been comparing the values in the PhysicalInvent field and PhyscialInventCalculated() display method in the InventSum table. Apparently the field gives the same result as the calculation in the display method.

I was also reading the verified answer in the link below:

https://community.dynamics.com/ax/f/microsoft-dynamics-ax-forum/194882/x-code-to-get-all-the-items-present-in-an-warehouse/498251

The calculation Brandon described for the PhyscialInvent field is the same as calculation in the PhyscialInventCalculated() display method.

I am wondering what is the difference between them? Why is the display method being widely used in the inquiries if the field have the same calculated value? In which scenarios, the values differ from each other?

  • Blue Wang Profile Picture
    Blue Wang on at
    RE: Difference between InventSum.PhysicalInvent and InventSum.PhysicalInventCalculated()

    Hi Hassan,

    I checked them and found no different values.

    1881.PNG7875.PNG

  • Hassan Akhtar Khan Profile Picture
    Hassan Akhtar Khan 240 on at
    RE: Difference between InventSum.PhysicalInvent and InventSum.PhysicalInventCalculated()

    Well, that's the question. Data seems to be similar but I am not sure.

    I am asking is there any scenario when the data in the field not equals to the calculation in this display method.

  • Blue Wang Profile Picture
    Blue Wang on at
    RE: Difference between InventSum.PhysicalInvent and InventSum.PhysicalInventCalculated()

    Hi Hassen,

    If it is determined that the data is exactly the same, then you can use the field.

  • Hassan Akhtar Khan Profile Picture
    Hassan Akhtar Khan 240 on at
    RE: Difference between InventSum.PhysicalInvent and InventSum.PhysicalInventCalculated()

    Hi Blue,

    Thanks I know that bit but my question is that the value populating in the PhysicalInvent field seemed to be same as the display method calculation. Does it always have the same value?

    Can we use the field anywhere instead of this display method? Especially for filtering purposes, as filtering on display method is not possible.

  • Blue Wang Profile Picture
    Blue Wang on at
    RE: Difference between InventSum.PhysicalInvent and InventSum.PhysicalInventCalculated()

    Hi Hassan,

    As mentioned, PhyscialInventCalculated() is obtained by calculation, not a direct data embodiment.

    2273.PNG

    In addition, the display method cannot be modified, which is different from using fields directly.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans