FirstSortedValue([ registration number],-[Date]) as [Identification].
It works for majority of the data but for some of cases, the firstsortedvalue return a null value ( but it is very weird that it returns nulls because for those problematic cases i have only one registrationNumber [ there are no duplicates for the ones who returns null, so it should return just the only one ] But, it returns null.
Then, thanks to the response on the post, i have put distinct and it works perfectly.
But i don't understand because there is only one element , no duplicates so why it doesn't even return the only one ?
If it is not a known problem i will insert as attachment a simplificate version of the qlik if someone can help, because i really don't understand why...
Also, is it better to always put distinct when it is useful to use firstsorterdvalue ?