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

Table with only the "youngest" rows

Hi.

I have a data that looks like this:

Omk1AnlaegIDDateAtt1Att2IDAmount
30410001-01-2010AAA1227
30410001-08-2017BAA2212
30410001-09-2018BAA3228
30410001-04-2013CBB4403
30511001-03-2012AAA5466
30511001-04-2013AAA6307
30511001-07-2016AAA7116
30511001-08-2017BBB8374

(attached excel file with more rows).

I can not change the dataload. How can i make a (pivot)tabel, that only returns the rows, with the youngest date for each uniqe combination of Omk1 and AnlaegID. I the above it would be ID =3 and ID = 8. In the excel file it is ID= 3, 8, 11, 13 and 16.

/Erik

1 Solution

Accepted Solutions
Gysbert_Wassenaar

You can use the firstsortedvalue function. See attached qvw.


talk is cheap, supply exceeds demand

View solution in original post

1 Reply
Gysbert_Wassenaar

You can use the firstsortedvalue function. See attached qvw.


talk is cheap, supply exceeds demand