Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tAggregate with Conditions

I have a table of EmpID, Date, SwipeIn/Out Time, Type as below image.

0683p000009M4L6.png

 

Now i would like to calculate each employee total spent time by calculating the first in and and last out for each day of for each employee.

 

To get First In i did used tAggregaterow but here i cant make a condition that the TIME should be Type IN

Then, While at the time of data loading itself, i filtered using Mysql query and created a pipeline for In's and another pipeline for Outs.

 

That means, i did used two taggregaterow's to calculate the first in and last out.

 

How can i make it in single tAggregaterow to Calculate FirstIn(Min of Time where Type = IN) and LastOut(max of Time where Type = Out).

 

is it possible with Talend.

 

Output That i am expecting is:- 

0683p000009M4LB.png

 

 

Can anyone please guide me

 

Regards,

Mohan V.

Labels (1)
  • v7.x

1 Reply
Anonymous
Not applicable
Author

Can anyone please share their thoughts on this.
I am really struck and i need some help.