Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello
It is me again
My sql query returns 3 rows for the same id, see bellow :
I would like to keep only one row (max valid from date) ; the first row
any function in Qlik
Thanks
try
=Firstsortedvalue(Field,-Date)
Try this,
Firstsortedvalue(ID,-Aggr(max(Date),ID))
or FirstSortedValue( ID, -aggr(Max(Date)) )
max(timestamp(date)) or use firstsortedvalue function
Hi either this:
=Firstsortedvalue(ID,-Aggr(max(Date),ID))
or u can use firstvalue() function aswell bcs ur data looks already aggregated based on date.
Sachin
The field ID in my case : imei_number
Firstsortedvalue(mei_number,-Aggr(max(valid_from),mei_number)) ?