Forum Discussion
Dedupe ID - Keep most recent record
- 8 years ago
Anonymous
(DAX(SUMMARIZECOLUMNS(analytics_clickstream_201802[visid_comb);"LastDate":MAX(analytics_clickstream_201802[date_time]))
)).
Replace : with ;
If you have problems with ; replace it with , (This is for regional settings)
Regards
Victor
Hi,
Share your data and also show the expected result.
- Anonymous8 years agoNot applicable
The link below containas a sample data .xslx (Two tabs, Raw Data and Desired State)
Simply put, I have one column of Visitor IDs, and the other a timestamp. If for example I look over the course of a year, I may see repeated Visitor IDs (i.e. the individual has visited the site multiple times over the last year) however the adjacent column is timestamped.
I would like to dedupe the Visitor ID column (Column A) so the data is distilled down to a single instance, showing the latest (newest) timestamp.
https://www.dropbox.com/s/6wdubhk9kj8kalq/Dedupe%20Sample%20Data.xlsx?dl=0
Thanks for your help!
- Vvelarde8 years ago
Community Champion
Anonymous
Hi, you can create a New Table (Modeling - New Table)
NewTable = SUMMARIZECOLUMNS ( 'Sample Data'[Visitor ID]; "LASTDATE"; MAX ( 'Sample Data'[Date] ) )Regards
VIctor
- Anonymous8 years agoNot applicable
It occurred to me as you were posting your response that the Visitor ID is based on a concatentation based on a Dax Function.
Will this work?