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: 
danielca
Contributor II
Contributor II

Count values from one column that are in another

Hi,

Can somebody help me with something. I need to count how many distinct values from one column are in another. For example:

Column AColumn B
AA
DB
CC
AD
ZE
XF
BG
PH
II
LJ

 

So, if I want to count distinct values from Column A that are present in Column B, the result would be 5.

Any ideas to do it? Script or graph formula?

1 Reply
Vegar
MVP
MVP

image.png

You could use this or a variant of this expression below. 

FindOneOf([Column A], concat(total [Column B]))

 

I use two variants, one with aggr in the attached qvf.