Quantcast
Channel: Iulian Cordobin's Groups Activities
Viewing all articles
Browse latest Browse all 1084

distinct keyword for records from AOT query

$
0
0

Hi,

I added few 3 different views to the AX standard query ProjTable_NoFilter.

Each of these view has amount column and i want to show Sum of that into ProjProjectListPage list Page.

but these views are replicating the records and hence i am getting wrong Sum of the Amount.

 

It's quite large amount than expected because of the extra rows created by the Join between these views.

 

If i keep single view in the AOT Query, sum is correct. but as soon as I add the 2nd view it actually shows larger value than expected.

 

I found that from T-SQL query that if we use Select 'DISTINCT' keyword, everything works fine. But i am not sure how to use distinct in AOT Query.

Any pointer would be much appreciated. 


Viewing all articles
Browse latest Browse all 1084


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>