Hi all expert,
I would like to identify all case if it has duplicated continuous activity.
This is example of my case below.
...A -> A -> B ...(duplicate)
...A -> B -> A... (non-duplicate)
Does anybody know good PQL or way how to do this?
Hi all expert,
I would like to identify all case if it has duplicated continuous activity.
This is example of my case below.
...A -> A -> B ...(duplicate)
...A -> B -> A... (non-duplicate)
Does anybody know good PQL or way how to do this?
Best answer by selma.van.s12
I would use the Lead statement for this:
sum(
Case
when LEAD ( Activitytable.activitycolumn , ORDER BY ( activitytable.timestamp) )
= Activitytable.activitycolumn
then 1.0
else 0.0
end
)
Each case that has 1 or more, has duplicate activities.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.