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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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,;