Forum Discussion
Dbjerring
9 years agoRegular Visitor
Remove duplicates based on values from multiple cells
Hi Community, We have dataset based on logs - here we would like to create a new column with a true/false value if the line is a duplicate. We have UserID, LogTimeDate, LogTime, and number of lo...
- 9 years ago
You could modify the formula as shown below.
IsDuplicate = IF ( COUNTROWS ( FILTER ( Logs, Logs[LogCNumber] = EARLIER ( Logs[LogCNumber] ) && Logs[LogTime.1] = EARLIER ( Logs[LogTime.1] ) && Logs[LogID] < EARLIER ( Logs[LogID] ) ) ) > 0, TRUE (), FALSE () )
v-chuncz-msft
9 years agoCommunity Support
You could modify the formula as shown below.
IsDuplicate =
IF (
COUNTROWS (
FILTER (
Logs,
Logs[LogCNumber] = EARLIER ( Logs[LogCNumber] )
&& Logs[LogTime.1] = EARLIER ( Logs[LogTime.1] )
&& Logs[LogID] < EARLIER ( Logs[LogID] )
)
)
> 0,
TRUE (),
FALSE ()
)
Asantos2020
7 years agoAdvocate II
Hlelo v-chuncz-msft ,
How would you go about identifying and keeping the latest row from multiple files datasource containing duplicates?
Cheers,
Antonio Santos