Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Data matching & Not Matching

Hi Experts,

I have this challenge, I have join 2 tables using left join, and my challenge is I have to

1 - Identify records in both tables ( tb1 & tb2) then multiple that with another field in table 1.

2-  Identify records not in table1 but in table2 then multiple that with another field in table 3 where field identify equal to Y.

Preferred option is to do this in load script.

See tables below

Table 1
KeyData
a12
b3
c4
d4534

Table 2
KeyData
a12
b3
c4
d4534
e89
f10

Table 3
MonthIdentifyData
JanN1
febN2
marN3
AprY4

Thanks in advance

8 Replies
Not applicable
Author

And you always have only one row with Y in table 3?

Not applicable
Author

Hi,

Yes 1 row with Y.

Not applicable
Author

What data model you would like to have in application?

Only 1 table with row number as in Table2 with fields Key and Value as:

-Table1.Data*Table2.Data (if Table2.Key exists in Table1)

-Table3.Data  (where Identify='Y')*Table2.Data (if Table2.Key does not exist in Table1)

?

What Month in Table3 is for?

regards

Darek

Not applicable
Author

Hi

Thanks for your help.

This option seems alright.

Table1.Data*Table2.Data (if Table2.Key exists in Table1)

-Table3.Data  (where Identify='Y')*Table2.Data (if Table2.Key does not exist in Table1)

Thanks

Not applicable
Author

So, using very easy script it is possible.

You may need to use few typpical clauses: where, exists, if, join or applymap.

Do you need somebody to write this script for you?

regards

Darek

Not applicable
Author

Hi,

Please if you can that will be lovely and much appreciated

Not applicable
Author

Hi,

If you can write the script that would be much appreciated.

Thanks in advance

maxgro
MVP
MVP

see attachment for same help