Skip to main content

Hi, I'm working on a case where we're analyzing activity time by users, by leveraging source - target.

Looking at the simplified example below, I want to show that John has been working for 1 hr while Paul worked for 4.5 hrs. This works fine, however I'd also like to show the number of activities they have performed in the same table. As John only has one SOURCE activity (Activity 1, as Activity 2 is the last activity of the case and is therefore not connected to a TARGET activity), it appears if he only performed 1 task while Paul performed 2.

2021-12-01 17_31_20-Book1 - ExcelThe intended output is as shown below, with SOURCE(Name) as dimension

2021-12-01 17_47_01-Book1 - ExcelIs it possible to adjust the SOURCE config to include Activity 4 in Johns activity count? Or is there any other approach to get this done? Note that the actual throughput time calculation is rather complex (taking various attributes like user activity type into account), so SOURCE/TARGET seems to be the only way to calculate the right duration. Thanks in advance!

Hello Lucas,

 

SOURCE-TARGET gives you intervals between activities, not activities by themselves. Therefore in the example table provided, you don't have 4 activities, what you have is 3 intervals. The desired output table mixes both concepts.

The duration column counts 3 intervals (you don't have Activity 5, therefore the duration of activity 4 is not known nor counted), so it is not possible to count 4 items there (2 john and 2 Paul) the correct result is what you obtain:

image 

To sum up, by using SOURCE-TARGET you don't have activities no more, you have intervals which is a different scope, therefore it is not possible to count activities. Either you get rid of SOURCE-TARGET all together or assume that you count intervals.

 

Hope this clarifies the doubts.

 

Best regards,

 


Thanks Pablo! That confirms my suspicion, although I was hoping for a workaround ;-)


Hi Lucas,

I am trying to do something similar. Can you please share PQL on how you have calculated Hours spent by user using SOURCE-TARGET?

Many Thanks.

Ashwin Hosbett


Reply