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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

For Duplicate Check

NumberStatus
12345N
12356N
15879N
98754N
15879Duplicate
15897N
12345Duplicate
98745N
65987N
46878N
98754Duplicate
15897N
65987Duplicate
15879Duplicate

Dear All

I have a  dimension (number) in which there is duplicate number repeated many times how i find it,and in another column i want the status

1 Reply
Kushal_Chawda

try,

Temp_Data:

LOAD * Inline [

Number

12345

12356

15879

98754

15879

15897

12345

98745

65987

46878

98754

15897

65987

15879];

Duplicate1:

LOAD Number,count(Number) as Cnt

Resident Temp_Data

Group by Number;

Duplicate:

LOAD Number,

'Duplicate' as status

Resident Duplicate1

where Cnt>1;

DROP Table Duplicate1;

Concatenate

LOAD Distinct Number,

'N' as status

Resident Temp_Data;

DROP Table Temp_Data;