Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
madhun
Contributor II
Contributor II

Qlik sense

Separation:
LOAD
employee_code,
last_available_date,
separation_status
FROM [lib://Test/hrmv_emp_sep_hdr.xlsx]
(ooxml, embedded labels, table is Sheet1);

i Want  a sepatare Table 
with Only distinct {last_available_date} along with thair employee_code

Labels (1)
1 Solution

Accepted Solutions
Benoit_C
Support
Support

Hello @madhun,

If you want a separate table with only distinct last_available_date and employee_code, you can use the DISTINCT keyword in your LOAD statement. For example:

DistinctDateTable: LOAD DISTINCT employee_code, last_available_date FROM [lib://Test/hrmv_emp_sep_hdr.xlsx] (ooxml, embedded labels, table is Sheet1);

This will create a new table called DistinctDateTable with only the unique combinations of employee_code and last_available_date from your source data.

Regards,
Benoit

View solution in original post

3 Replies
madhun
Contributor II
Contributor II
Author

 
Benoit_C
Support
Support

Hello @madhun,

If you want a separate table with only distinct last_available_date and employee_code, you can use the DISTINCT keyword in your LOAD statement. For example:

DistinctDateTable: LOAD DISTINCT employee_code, last_available_date FROM [lib://Test/hrmv_emp_sep_hdr.xlsx] (ooxml, embedded labels, table is Sheet1);

This will create a new table called DistinctDateTable with only the unique combinations of employee_code and last_available_date from your source data.

Regards,
Benoit

vinieme12
Champion III
Champion III

as below

 

Separation:
LOAD
employee_code,
last_available_date,
separation_status
FROM [lib://Test/hrmv_emp_sep_hdr.xlsx]
(ooxml, embedded labels, table is Sheet1);

 

LatestDate:

LOAD
employee_code,
Date(Max(last_available_date)) as latest_date,
Resident temp

Group by employee_code;

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.