我怎么能在Qlikview中这样做?

时间:2012-08-21 10:30:47

标签: join qlikview

我有一个“All_Data”表,其中包含“HR Manager”列,它包含“Employee Name”。 我需要获取 NOT 的行来完成以下连接(意味着连接表中缺少的连接)。

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中这样做?

THX, 海伦

3 个答案:

答案 0 :(得分:1)

你用1分钟的时间击败我,弗朗西斯科,但你最后忘记了分号;)

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字段中所有人员的表格,但不会出现在“姓名”字段中。

希望这有帮助,

詹姆斯。

答案 1 :(得分:0)

我认为[全名]是"员工姓名"您在文中提到的字段。

这是你要表达的内容吗?:

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

干杯, 西蒙

答案 2 :(得分: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])