Announcements
Hi All,
This job will iterate 1500 records in queryRun as per my query. That's correct. Among that, there 5 records only has Qty > 0. How can i filter the same in above query class?
I have added group by of Item Id and InventDimId. And Sum of Qty field.
Thanks.
We can do it. With "having", mentioned above.
By the way, if you wanted to do it in T-SQL, you would need the same thing: HAVING.
Hi,
I don't think we can filter on the sum of qty in the query.
But it's feasible to make it with T-sql and the post below explain how to make it.
(community.dynamics.com/.../executing-direct-sql-statements)
regards,
Which version of AX is it about? You can do it with "having", which was introduced in AX 2012, I think. Another approach would be using a summarized view.
Moved to Dynamics AX forum.
André Arnaud de Cal...
294,206
Super User 2025 Season 1
Martin Dráb
232,968
Most Valuable Professional
nmaenpaa
101,158
Moderator