Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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