Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Checking one field in another table?

Hi All,

I have two tables namely Open and Filled in which i have Open Positions and Filled Positions data respectively.

Now i need to show, Number open Positions(Req Number) from min(OpenDate) to selected year and it should check for it is Filled or not in the same time span.

I used the following exp

=count ({<Open.Status={'Open'},[Open.Opened Date]={"<=$(Year) "},Filled.Status={"<>$('Filled')"}>}DISTINCT [Req Number])

Please look at Attached app

the correct answer is if you select 2013 it should show 1 and if you select 2014 it should show 29 if you select 2015 or nothing it should show 87

12 Replies
maxgro
MVP
MVP

=count ({<Open.Status={'Open'},[Open.Opened Date]={"<=$(=Floor(YearEnd(MakeDate(Max(Year)))))"}>}DISTINCT [Req Number])

I remove the Filled.Status <> Filled (Filled.Status=-{Filled}) because all records are Filled

Not applicable
Author

Yes but i need the Req numbers from Open Table which are not present in Filled Table.

how to achieve that??

krishna_2644
Specialist III
Specialist III

Hi Nithin,

try solving the synthetic keys first in your app.

For Req numbers from Open Table which are not present in Filled Table :

Use Where not exists() condition.

I cannot reload the app here.

Not applicable
Author

i want it expression level. because it should respond to the filter

krishna_2644
Specialist III
Specialist III

Thats what. try resolving the synthetic key first. if you have syn keys theres a possibilty that your count may not be accurate.

krishna_2644
Specialist III
Specialist III

After that post the app.

Thanks

Not applicable
Author

you are asking me to remove synthetic keys?

krishna_2644
Specialist III
Specialist III

yes. after that post the app.

Not applicable
Author

PFA