Hesseltje van Goor
10/10/2022, 2:11 PMHesseltje van Goor
10/10/2022, 2:12 PMHesseltje van Goor
10/10/2022, 2:13 PMHesseltje van Goor
10/10/2022, 2:14 PMSELECT COUNT(Employee ID, Records of Ticket Replies)
which is not available to us (assuming I substitute ID (Portal Users) for Employee ID and do something like Records of Viewing Requests for Records of Ticket Replies.Hesseltje van Goor
10/10/2022, 2:23 PMSELECT COUNT(ID (Portal Users), ID (VR))
but this returns the number of applicants who have made a request, not the amount of requests per applicant.Jakub Sterba
10/10/2022, 2:30 PMSELECT COUNT( ID(VR) )
to count number of unique requests. Attribute “Records of _dataset_” is created in case there is no primary key in fact dataset defined. You can use it to count records of this dataset (e.g. SELECT COUNT(Records of Ticket Replies
)Hesseltje van Goor
10/10/2022, 2:31 PMHesseltje van Goor
10/10/2022, 2:31 PMHesseltje van Goor
10/10/2022, 2:32 PMJakub Sterba
10/10/2022, 2:32 PMHesseltje van Goor
10/10/2022, 2:33 PMJakub Sterba
10/10/2022, 2:33 PMHesseltje van Goor
10/10/2022, 2:35 PMJakub Sterba
10/10/2022, 2:35 PMselect avg(select count(Records of Ticket Replies) by Portal User)
Hesseltje van Goor
10/10/2022, 2:35 PMJakub Sterba
10/10/2022, 2:35 PMselect count(Records of Ticket Replies)/count(Portal User)
Hesseltje van Goor
10/10/2022, 2:35 PMJakub Sterba
10/10/2022, 2:36 PMHesseltje van Goor
10/10/2022, 2:36 PMJakub Sterba
10/10/2022, 2:37 PMHesseltje van Goor
10/10/2022, 2:38 PMJakub Sterba
10/10/2022, 2:38 PMselect count(ID (Portal User)
Hesseltje van Goor
10/10/2022, 2:39 PMJakub Sterba
10/10/2022, 2:42 PMselect Number of requests / Number of users
or
select count(Id(VR))/count(Id (Portal User))
or
select avg(select Number of Requests by Id(Portal user))
or
select avg(select count(Id (VR)) by Id (Portal User)
Jakub Sterba
10/10/2022, 2:43 PMHesseltje van Goor
10/10/2022, 2:43 PMJakub Sterba
10/10/2022, 2:49 PMselect count(Id (Portal User), Id (VR))
The average number of requests per user who had a request can be then computed without the AVG function as:
select count(Id(VR)) / count(Id (Portal User), Id (VR))
Hesseltje van Goor
10/12/2022, 12:58 PM