Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

Count in SSRS Report

$
0
0


Hi. I need to please for a report from srsrs to have clients have each salesperson within a line of business. That is to say

Line of Business: X

Worker: Maria

Customers 12 

In line of business X, the workerMaria has 12 curstomers. I am new to X ++, I would appreciate your collaboration, this is the syntax that he did but he repeats the values ​​and does not calculate the number of customers well

int CONTAR;


while
select count (RecId) from custTable group by LineOfBusinessId, MainContactWorker
where custTable.LineOfBusinessId == lineOfBusiness.LineOfBusinessId
 

{


select * from lineOfBusiness
where lineOfBusiness.LineOfBusinessId == lineOfBusinessId
&& lineOfBusiness.LineOfBusinessId == custTable.LineOfBusinessId;

select * from hcmWorker where hcmWorker.RecId == custTable.MainContactWorker;

select * from dirPartyTable where dirPartyTable.RecId == hcmWorker.Person;

// && lineOfBusinessId == "PRUEB"


CONTAR++;


Viewing all articles
Browse latest Browse all 72043

Trending Articles



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