Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
krishnagutha1294
Partner - Contributor II
Partner - Contributor II

comparing 1 column with no of columns

Hi All

I have 2 tables 

Table 1:

A,B,C

Table 2:

D,E,F,G,H

Now I need to calculate Count(A)

When A=D or A=E or A=F

Please can any one help how to resolve 

Thanks in advance 

3 Replies
Taoufiq_Zarra

in Script or UI ?

can you share a sample data and the expected ?

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
krishnagutha1294
Partner - Contributor II
Partner - Contributor II
Author

In Script

sunny_talwar

Something like this?

Table2:
LOAD * INLINE [
    D, E, F, G, H
    10, 20, 30, 10, 50
    100, 10, 20, 20, 30
    50, 40, 40, 60, 40
    10, 30, 50, 40, 60
];

Table1:
LOAD * INLINE [
    A, B, C
    10, 50, 30
    40, 20, 20
];

CountTable:
LOAD Count(If(Exists(D, A), A)) as A_D,
	 Count(If(Exists(E, A), A)) as A_E,
	 Count(If(Exists(F, A), A)) as A_F
Resident Table1;