Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Reference table (multiple match)

Have one driver table and want to reference based on one column and in reference table i have multiple records but i need to pick which is earlier (date), how can i achieve this, please need your suggestions.

1 Reply
er_mohit
Master II
Master II

Use firsorted value concept function for getting max record on the base of date  and group by that one column

like

load * from orignial table;

load PrimaryKeyfield,

max(Recordfield) as Record,

firstsortedvalue(Datefield,-Record) as EarlierDate

resident originaltable

group by PrimaryKeyfield,;