Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to set Analysis with Field value exist in other column?

Table 1:

Field AField B
A10
B20
C30
D50

Table 2:

Field CField D
A1
B2
D3
E4

How to set an analysis like below where Table 1 and Table 2 are not associated together?

Count (distinct (if(Field B > 0 and (Field A exist in Field C), [Field B])))

Many Thx!

1 Solution

Accepted Solutions
sunny_talwar

That is strange because not having anything there is equivalent of having $ (unless you chart is in an alternate state). So essentially these two equations are the same

Count(DISTINCT {<[Field B] = {'>0'}, [Field A] = P([Field C]>} [Field B])

Count(DISTINCT {$<[Field B] = {'>0'}, [Field A] = P([Field C]>} [Field B])

View solution in original post

4 Replies
sunny_talwar

May be this:

Count(DISTINCT {<[Field B] = {'>0'}, [Field A] = P([Field C]>} [Field B])

Anonymous
Not applicable
Author

Hi Sunny,

it seems not work.

Does It only allows putting value in P(Value) instead of P(Field)?

Best Regards

Anonymous
Not applicable
Author

It works after adding the $

Count(DISTINCT {$<[Field B] = {'>0'}, [Field A] = P([Field C]>} [Field B])


THX!

sunny_talwar

That is strange because not having anything there is equivalent of having $ (unless you chart is in an alternate state). So essentially these two equations are the same

Count(DISTINCT {<[Field B] = {'>0'}, [Field A] = P([Field C]>} [Field B])

Count(DISTINCT {$<[Field B] = {'>0'}, [Field A] = P([Field C]>} [Field B])