Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Paknanarn23
Creator II
Creator II

looking for OT

I want to find that if the value ot1 > ot2 let count Employeeid in each department.

Paknanarn23_0-1684207631473.png

 

 

5 Replies
MayilVahanan

Hi

Dim: Department
Exp: Sum(Aggr(If(OT1 exp > OT2 exp, 1), EmployeeId, Department))

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Paknanarn23
Creator II
Creator II
Author

Hi

And if I want a condition that ot1 < ot2 count Employeeid in each department. what do I need to do?

Paknanarn23
Creator II
Creator II
Author

where the number of employees that is total column 2 combined with column 4 must be equal to the number of column 1

Paknanarn23_0-1684291221904.png

 

MayilVahanan

Hi

Can you send the sample data with expected output

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
hic
Former Employee
Former Employee

I would use

Count({<EmployeeId={"=OT1>OT2"}>} distinct EmployeeId)

This assumes that each employee only has one value of OT1 and one value of OT2. If there are several, you need to use e.g.

Count({<EmployeeId={"=Sum(OT1)>Sum(OT2)"}>} distinct EmployeeId)