Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.
Level 1
Level 2
Melden Sie sich an, um alle Badges zu sehen
Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.
Hi Team,
I am trying to extract App subscription data and want to only extract latest entry if more than one entry found with the same userKey
So, the filter needs to be done on 'registration date' and if entry1 and entry 2 are same, we need to take the latest entry among them.
Thank you.
Gelöst! Gehe zu Lösung.
Hi Gunjan,
I can think of a couple of solutions here.
1>.Create a query for pulling all data which has condition userkey is not empty and then deduplicate based on the user key. By default , the deduplication is run on the lastModified field and will only keep the latest records.
2>. If this is for targeting purposes , you can also use an Incremental query which only shows you changed , modified or latest records which were previously not processed
Regards,
Adhiyan
Zugriffe
Antworten
Likes gesamt
Depending on the DB used the syntax maybe different. You simply need to apply some sort of ranking (rank using subscriber key and order by registration date descending. It is a datetime format so the possibility to pick up records or more for the same subscriber is minimum.
For example, if using SQL Server, you can use the partition by command to do that.
Zugriffe
Antworten
Likes gesamt
Thank you for this response. I was interested in how others approach this, too.
Zugriffe
Antworten
Likes gesamt
Hi,
You can sort the records on the basis of Registration Date in Descending Order and then you can select the First Record.
This can be achieved either by the JS Activity or you can achieve this by Enrichment itself.
Zugriffe
Antworten
Likes gesamt
Hi Gunjan,
I can think of a couple of solutions here.
1>.Create a query for pulling all data which has condition userkey is not empty and then deduplicate based on the user key. By default , the deduplication is run on the lastModified field and will only keep the latest records.
2>. If this is for targeting purposes , you can also use an Incremental query which only shows you changed , modified or latest records which were previously not processed
Regards,
Adhiyan
Zugriffe
Antworten
Likes gesamt
Zugriffe
Likes
Antworten
Zugriffe
Likes
Antworten
Zugriffe
Likes
Antworten