Hi Community, I want to visualize the amount of handover moments within a case and also calculate an average for all cases. We have multiple tables but the most relevant are of course the case table (incl. Case_Key, Case_ID) and the activity table (activities, Case_Key, Case_ID, USER_ID). The USER_ID contains the relevant info I want to use for defining the handovers but I can't seem to pull it off. Any tips?
Solved
Calculate the amount of handover moments within a case and also calculate an average for all cases.
Best answer by emiel.van.n14
In the meantime I found the solution by simply using the PU_COUNT_DISTINCT PQL function. More information >> here
I used the first example
Column 1: "companyDetail"."companyCode"
Column 2: PU_COUNT_DISTINCT ( "companyDetail" , "caseTable"."value" )
To AVG the handovers across all cases I simply added AVG to the equation > "AVG(PU_COUNT_DISTINCT( "companyDetail" , "caseTable"."value" )
Works as expected.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.