Skip to main content
Question

PQL question;I am trying to create a query that counts activities after a specific activity is captured.

  • August 31, 2022
  • 1 reply
  • 4 views

PQL question; I am trying to create a query that counts activities after a specific activity is captured.

1 reply

irfan.suria12
Level 8
Forum|alt.badge.img+3

If you want to aggregate the count to each case, you can try this:

 

PU_COUNT (

"_CEL_CASES" ,

"_CEL_ACTIVITIES"."ACTIVITY_EN" ,

"_CEL_ACTIVITIES"."EVENTTIME"

>

PU_FIRST (

"_CEL_CASES" ,

"_CEL_ACTIVITIES"."EVENTTIME" ,

"_CEL_ACTIVITIES"."ACTIVITY_EN" = 'Specific Activity'

)

)