Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Andrew_Maynard1
Contributor
Contributor

Choose Specific rows of data.

I have a data set with a PolicyNumber & Date columns (+other columns). I want to filter to 1 line per Policy Number & the most recent Date. (essentially a DISTINCT[PolicyNumber] by Max(Date)). How can I do this in QlikView ?

Where would be a good place to learn more about basic filtering & aggregation of data tables in qlikview ?

 

 

Labels (2)
1 Reply
BrunPierre
Partner - Master II
Partner - Master II

Hi, something like this?

tmpBaseData:
LOAD * FROM SouceTable;

Noconcatenate
FinalTable:
LOAD DISTINCT [PolicyNumber] as [PolicyNumber],
     Max(Date) as Date,
     Column1,
     Column2,
     Column3

Resident tmpBaseData
Group By [PolicyNumber], Column1, Column2, Column3;

DROP Table tmpBaseData;