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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

fetching all records from inventsum according to inventtable.

(0) ShareShare
ReportReport
Posted on by

Hi!

I am developing a customized report in which i need to add a filter of item group id.

and fetch availphysical from inventsum and minimum and maximum quantity from reqitem table.

so I built a query 

while select ItemId from inventItemGroupItem 

where inventItemGroupItem.ItemGroupId == parmItemGroupId.parmObject()

join sum(AvailPhysical) from Inventsum

where inventsum.ItemId == inventItemGroupItem.ItemId

join MinInventOnhand,MaxInventOnhand from reqItemTable

where reqItemTable.ItemId == inventItemGroupItem.ItemId

here the problem is there are every record in inventtable but not all added to the inventory

and the table inventsum only contains the records which are added to the inventory and reqitemtable only provides the records of which minimum and maximum quantity has been added. so when i run this query it only fetches the records present in all three tables. otherwise it doesnt bring the other all records in invent table.

iwant to fetch all the records from inventtable and of which item the min max and avail physical is not available it show them blank but must fetch the data according to inventtable.

what should i do please help.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Brandon Wiese Profile Picture
    17,788 on at

    Make InventTable the first table in your query and use left outer joins for the other tables.

    Also don't forget about InventDim.  You wouldn't want to show the Min/Max quantities for one warehouse along with the available physical quantity for another.

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

News and Announcements

Season of Giving Solutions is Here!

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
TAHER Mehdi Profile Picture

TAHER Mehdi 3

#2
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

#2
Volodya Profile Picture

Volodya 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans