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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
nihhalmca
Specialist II
Specialist II

Retrieve Common Records

Hi All,

My Data Model has 2 fact tables. Common column should be 'ID'.

Fact 1          Fact 2

ID                ID

1                  1

2                  2

3                 

4

Note: I want to display 'ID' in chart expression where ID has in both the fact tables. Moreover i do not want to disturb data model for example Concatenate, Link table etc.

Thanks,

Nihhal.

7 Replies
Anonymous
Not applicable

Well,

In this case you can create a different field name with same values, say

ID as TestID then

you can compare like:

IF(ID=TestID............sth like this..

sunny_talwar

You want to see this where? List Box? Table Box? Straight Table?

nihhalmca
Specialist II
Specialist II
Author

Pivot table.

sunny_talwar

Try with a calculated dimension: (and Select 'Suppress When Value Is Null' option on dimension tab)

=If(Len(Trim(FieldFact1)) > 0 and Len(Trim(FieldFact2)) > 0, ID)

Where FieldFact1 is a field exclusively from Fact 1 table and FieldFact2 is exclusively from Fact 2 table.

Capture.PNG

maxgro
MVP
MVP

if Exp5 is a field in Fact 2, you can try with a calculated dimension setting null the dimension when you don't have Exp5 (else the dimension is ID)

=if(aggr(count(Exp5),ID)=0,null(), ID)

nihhalmca
Specialist II
Specialist II
Author

Thanks for the response Sunny.

Just i used only ID there is no measure.

Ex: Count({<Theater = {'NA'}, (Where matched records in ID from the both tables) >} ID)

Nihhal.

sunny_talwar

Not a problem at all.

I am glad I was able to help.

Best,

Sunny