Skip to main content
Question

How to check whether a certain activity has occurred more than once , twice for a single case using PQL??

  • July 5, 2022
  • 3 replies
  • 9 views

Forum|alt.badge.img+7
How to check whether a certain activity has occurred more than once , twice for a single case using PQL ??

3 replies

Forum|alt.badge.img

Hi,

 

You can try use CASE WHEN statement for this one.

Something like:

SUM(CASE WHEN "ACTIVITES"."ACTIVITY" = 'Name_of_activity' THEN 1 ELSE 0 END)

 

Regards,

Marcin


Hi @Dipro Banerjee ,

 

Use

PU_COUNT ( "CASE_TABLE", "ACTIVITIES"."ACTIVITY", "ACTIVITIES"."ACTIVITY" IN ('Activity you're interested in') )


Forum|alt.badge.img+7

Thanks for both the solutions.