Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Add flag in script for duplicate ids

Hello I would like to add a flag in my script that captures duplicate ids. How can this be done within the script?

ID    Indicator

1         x

1         x

2

3

4        x

4        x

1 Solution

Accepted Solutions
sunny_talwar

Something like this:

Table:

LOAD * Inline [

ID

1

1

2

3

4

4

];

Left Join (Table)

LOAD ID,

  If(Count(ID) > 1, 'x') as Indicator

Resident Table

Group By ID;


Capture.PNG

View solution in original post

1 Reply
sunny_talwar

Something like this:

Table:

LOAD * Inline [

ID

1

1

2

3

4

4

];

Left Join (Table)

LOAD ID,

  If(Count(ID) > 1, 'x') as Indicator

Resident Table

Group By ID;


Capture.PNG