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

Announcements
AWS Degraded - You may experience Community slowness, timeouts, or trouble accessing: LATEST HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
nikita42
Partner - Contributor III
Partner - Contributor III

Need help with a few calculations

Hi, I have the following table and need to find a count of managers who have another manager under them, in this case 4 (C, D, F, and X). I also need to find the count of managers who only have a single person reporting to them (B, C, and D). I'm quite new to QlikView so would appreciate an explanation of the logic used.

    

EmployeeIDManagerManager ID
A1B3
B2C3
C3D4
D4F6
E5F6
F6X6

Thanks

1 Reply
sunny_talwar

May be these:

1st Requirement

=Concat(DISTINCT {<Manager = p(Employee)>} Manager, ', ')

=Count(DISTINCT {<Manager = p(Employee)>} Manager)

2nd Requirement

=Concat(DISTINCT {<Manager = {"=Count(Employee) = 1"}>} Manager, ', ')

=Count(DISTINCT {<Manager = {"=Count(Employee) = 1"}>} Manager)

Capture.PNG