Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Alteryx - Duplicate values based on conditions

sneha_bhiwagade1
8 - Asteroid

Hi Team,

 

Please find the attached sample data with desired output. 

 

I want to create a log file based on below conditions

 

1. which contains duplicate marks.

2. marks are duplicate but roll number is different.

 

Kindly let me know the approach to solve the above problem statement.

 

 

Many Thanks in advance!!

3 REPLIES 3
cjaneczko
13 - Pulsar

I am not following what you are looking to do. What is the condition for the output? Rohan and Pas have duplicate marks but only Rohan is on the output, not Pas? Why Rohan and not Pass?

 

Input

roll nonamemarkslast name
1abhi10c
1amit20c++
1raj30java
1rohan40android
1pas40python
2saas50oracle
2aas20sql
2khushi80tableau

 

Output

roll nonamemarkslast name
1amit20c++
1rohan40android
2aas20sql
sneha_bhiwagade1
8 - Asteroid

Hi,

 

@cjaneczko Thank you!!

 

Either Rohan or Paas can be in the output file but not bot

 

Because they have the same roll number so only one line will flow in the output file file

cjaneczko
13 - Pulsar

If you dont care which one passes through you can use a Unique tool and set the Uniqueness on the Role No and Mark. 

Labels