Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Loading data using efffective date

Good day

I need assistance, I am trying to load data that has distinct values but I want to only load the most recent data of the employee using the last effective date.

1 Reply
MK_QSL
MVP
MVP

Temp:

Load

  EmployeeID,

  Date([Effective Date]) as [Effective Date]

Inline

[

  EmployeeID, Effective Date

  A, 01/01/2014

  B, 01/02/2014

  A, 15/05/2014

  B, 18/04/2014

  C, 10/02/2014

  A, 20/02/2014

];

Final:

Load

  EmployeeID,

  Date(Max([Effective Date])) as MaxDate

Resident Temp

Group By EmployeeID;

Drop Table Temp;