Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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.