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

only count the newest

Hello,

I have a table that contains n rows for one ID, now I would like to count only the newest row for the ID.

Propably my english is not so well, i will tell it also in german.

Ich hab eeine Tabelle mit Belegzeilen, es gibt dort mehrere Belege für eine eindeutige ID, zusätzlich gibt es ein Datumsfeld das, das Anlagedatum beschreibt. Ich möchte nun nur die Belege zählen pro ID die das aktuellste Datum haben.

Wie kann ich das realisieren?

Danke/Thanks

Gruß

Andreas

1 Reply
Not applicable
Author

Hello Andreas,

You can use below script:


Tablename:
Load
ID
Resident Tablename
Where ID <> Previous(ID)