In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Recreating PowerBI formula for finding duplicates

Dbjerring
5 - Atom

Hi Community,

 

I need help converting af PowerBI DAX function for finding duplicates.

I have a dataset based on logging, and often multiple duplicates are present.

 

We log time, number of lines and need these to be the foundation for a 'IsDuplicate' field with a TRUE/FALSE value.

 

Thank you in advance - your help is much appreciated!

 

My PowerBI function:

 

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 ()
)

1 REPLY 1
JoshKushner
12 - Quasar

This sounds like a situation to use the Unique Tool.

 

Flow:

flow.PNG

 

Input:

input.PNG

 

Unique Results:

uniq.PNG

 

Duplicate Results:

dup.PNG

 

Unique Tool:

unitqe.PNG

Labels
Top Solution Authors