Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
khajafareed
Contributor III
Contributor III

Expression to show De-tagged resources

Hi All,

My Data Souce is Excel, daily we upload excel files and load data into Qlikview.

I have fields like Emp_Code, Emp_name, Prj_Code, Load_Date. Now i want to show the only Emp_name's which are de-tagged/missing from Prj-Code comparing from prvious day excel file and excel file placed Today.

Thanks in Advance.

2 Replies
felipedl
Partner - Specialist III
Partner - Specialist III

Hi Khaja,

Just do a full outter join on both files, loading only Prj_Code and Emp_name for this.

PreviousDay:

Load

Prj_code,

Emp_name,

1 as [Flag Previous Day];

Load * Inline

[

Prj_code,Emp_name

1,A

2,A

3,B

4,D

];

Outer join (PreviousDay)

Load

Prj_code,

Emp_name,

1 as [Flag Current Day];

Load * Inline

[

Prj_code,Emp_name

5,D

2,A

4,C

4,D

];

FinalData:

Load

Prj_code,

Emp_name,

if ([Flag Previous Day]=[Flag Current Day],1,0) as [Flag Days]

Resident PreviousDay;

drop table PreviousDay;

With this code, I get

sample.png

Which is stating to me that only that Prj_code 2 emp_name A and Prj_code 4 and emp_name D are present in previous and current day file.

khajafareed
Contributor III
Contributor III
Author

Thanks for Reply,

But i am not able to get what i required.