Professional Documents
Culture Documents
Employees:
LOAD EmployeeID,
Employees: BuildingID,
LOAD EmployeeID, BuildingID AS BuildCounter,
BuildingID, 1 AS EmployeeFlag,
BuildingID AS BuildCounter IF(Gender='Male', 1, 0)
AS MalesFlag,
IF(Gender='Female', 1, 0)
Number of buildings:
COUNT(BuildingID) 900 AS FemalesFlag,
COUNT(DISTINCT BuildingID) 20
Number of employees: Males:SUM(MalesFlag) 420
Number of buildings with employees:
COUNT(DISTINCT BuildCounter) 18 SUM(EmployeeFlag) 900 Females:SUM(FemalesFlag) 480
2016 QlikTech International AB. All rights reserved. Qlik, Qlik Sense, QlikView, QlikTech, Qlik Cloud, Qlik DataMarket, Qlik Analytics Platform and the Qlik logos are trademarks of QlikTech International AB which
have been registered in multiple countries. Other marks and logos mentioned herein are trademarks or registered trademarks of their respective owners. Use of any and all of the foregoing is subject to the written approval of Qlik.