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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
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.