Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
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