Announcements
I made a view based on a OAT Query that joined the VendPackingSlipTrans table with the PurchLine table and group them by the PurchId and the ActivityNumber fields to sum Qty and AmountMST. I used the view in a form and I realized that the view is not being group by the PurchId and the ActivityNumber fields. I went to see the view directly to the SQL Database and see that the physical resulting view adds all the fields to the group by giving an unwanted result. Is there any way to avoid this?
Thanks a lot for you help. I was expecting that because on my query I already have the fields summarized, the resulting view will work pretty much the same as If i used the query in X++, in the sense that the fields will have the sum value itself. I just realized that this is not the way it works. You will have to used the aggregated function in the view for each field all over again.
Hi,
Would you provide some more details on the view please? I mean AOT definition, mainly how did you made the grouping and the SUM in the view?
Hi Emilio,
You can try to create view on tables. Here is a step by step guide for your reference:
community.dynamics.com/.../how-to-create-view-in-dynamics-365
Hi Emilio,
Can you describe in detail how you defined the view and what is the current and expected outcome (examples)?
André Arnaud de Cal...
294,255
Super User 2025 Season 1
Martin Dráb
232,984
Most Valuable Professional
nmaenpaa
101,158
Moderator