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: 
Anonymous
Not applicable

Comparation

have

colum1 colum2

1          2

2          3

3          4

4          6

5          8

I need to count what records in column 1 are in column 2

thnxs

1 Solution

Accepted Solutions
stigchel
Partner - Master
Partner - Master

For me it says 3 because 2,3,4 of colum1 are also in colum2, see attached

What is the logic for 2 being the correct result?

View solution in original post

5 Replies
stigchel
Partner - Master
Partner - Master

Like this?

=Count({<colum2=P(colum1)>} colum1)

Anonymous
Not applicable
Author

says 5 and not 2 as it is the correct result, thank you very much, you are very close

stigchel
Partner - Master
Partner - Master

For me it says 3 because 2,3,4 of colum1 are also in colum2, see attached

What is the logic for 2 being the correct result?

Anonymous
Not applicable
Author

Thank you very much, have an excellent day

Anonymous
Not applicable
Author

how would COUNT DISTINCT?