Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
sculptorlv
Creator III
Creator III

How to match repeated values

Hello again. I really hope for your help!

I have such table:

Nr. Descripiont. Value

001     AA               hotel

002     BB               motel

003     CC               mobile

003     CC               cinema

005     DD               cinema

006     EE               mobile

So, there are possible several values for the last column, and the values are no unique.

I need somhow in qlickview chart to point out Nr. (numbers) wich contain NOT unique values. For my example:

003 CC          mobile

003 CC          cinema

005 DD          cinema

006 EE             mobile

Thank you in advance!

1 Solution

Accepted Solutions
sushil353
Master II
Master II

Hi,

using script below you can flag all the duplicate items:

Temp:

LOAD *,if(flag >1,1,0) as Flag;

load

*,AutoNumber(f1,f2) as flag Inline

[

number,f1,f2

001,AA,hotel

002,BB,motel

003,CC,mobile

003,CC,cinema

005,DD,cinema

006,EE,mobile

];

Left Join

LOAD f2,1 as duplicateflag

Resident Temp

where Flag =1;

DROP Field flag,Flag;

HTH

Sushil

View solution in original post

1 Reply
sushil353
Master II
Master II

Hi,

using script below you can flag all the duplicate items:

Temp:

LOAD *,if(flag >1,1,0) as Flag;

load

*,AutoNumber(f1,f2) as flag Inline

[

number,f1,f2

001,AA,hotel

002,BB,motel

003,CC,mobile

003,CC,cinema

005,DD,cinema

006,EE,mobile

];

Left Join

LOAD f2,1 as duplicateflag

Resident Temp

where Flag =1;

DROP Field flag,Flag;

HTH

Sushil