1

我有一个“All_Data”表,其中包含一个“HR Manager”列,它包含“Employee Name”。我需要获取不满足以下连接的行即连接表中缺少的行)。

HR_Manager:
Load [HR Manager] as [HR Full Name]
Resident All_Data;

inner Join(HR_Manager)
Load [Full Name] as [HR Full Name]
Resident All_Data;

有谁知道我如何在 Qlikview 中做到这一点?

谢谢,莉娜

4

3 回答 3

1

你比我早了 1 分钟 Francesco,但你确实忘记了最后的分号;)

HR_Manager:
Load [HR Manager] as [HR Full Name]
Resident All_Data;

inner Join(HR_Manager)
Load [Full Name] as [HR Full Name]
Resident All_Data;

AllTheOthers:

Load [Full Name] as [Employee Name]
resident All_Data
where not exists ([Full Name]);

如果这不是您正在寻找的东西,那么以下可能会起作用

HR_Manager:
Load [HR Manager] as [HR Managers that are not employees]
Resident All_Data
Where not exists ([HR Manager],[Full Name]);

这将创建一个包含 HR Manager 字段中存在但未出现在 Full Name 字段中的所有人员的表。

希望这可以帮助,

詹姆士。

于 2012-08-28T13:08:56.827 回答
0
HR_Manager:
Load [HR Manager] as [HR Full Name]
Resident All_Data;

inner Join(HR_Manager)
Load [Full Name] as [HR Full Name]
Resident All_Data;

AllTheOthers:

Load [Full Name] as [Employee Name]
resident All_Data
where not exists ([Full Name])
于 2012-08-28T13:01:30.480 回答
0

我认为 [Full Name] 是您在文本中提到的“员工姓名”字段。

这是你想要表达的吗?:

New_Table:
Load [HR Manager] as [HR Full Name]
Resident All_Data
Where [HR Manager] <> [Full Name];

干杯,西蒙

于 2012-08-21T11:23:58.283 回答