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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
renjithpl
Specialist
Specialist

match for email address from different tables

Hi All,

I have two different table loaded in my application, both tables have no connection

Below is my first table

Matter IDName of the MatterEmail ID of Notice Recipient
447237DERIPASKA, OLEG VLADIMIROVICHWilliam.Bozza@hotmail.com
447237DERIPASKA, OLEG VLADIMIROVICHalexandra.kogan@hotmail.com

below is my second table

manager_nameEmail AddressJob_Title
James E Staleyabbbb@gmail.comExecutive
Barry L Zubrowabcd@gmail.comRisk Methodology Executive   
James E StaleyWilliam.Bozza@hotmail.comAdvisory Executive           
Frank J Bisignanomichael.j.ahearn@jpmchase.comHR Bus Partner - Executive   

I want to write a code, like =if ([Email ID of Notice Recipient] = [Email Address], 'Yes', 'No')

Basically my second table has a directory of email ids, so if atleast one email address matches from table one with the table two [Email Address], then it should say yes else no.

Regards

Renjith

1 Solution

Accepted Solutions
its_anandrjs
Champion III
Champion III

Hi,

See the sample file for the clearity of the is it a solution for you.

Regards

Anand

View solution in original post

12 Replies
Miguel_Angel_Baeyens

Renjith,

What is the link between the first and second table? I'm thinking of a mapping table and the ApplyMap() function. Or it might it do just using EXISTS() as of the following (non in a record per record basis)?

Table1:

LOAD "Matter ID",

     "Name of the Matter",

     "Email ID of Notice Recipient"

FROM ...;

Table2:

LOAD manager_name,

     "Email Address",

     Job_Title,

     If(EXISTS("Email ID of Notice Recipient", "Email Address"), 'Yes', 'No') AS Code

FROM ...

The "Code" field in Table2 will be populated with "Yes" when the email address in the record exists in any of the records in Table1, and with "No" if it doesn't.

Is that what you are looking for?

Miguel Angel Baeyens

BI Consultant

Comex Grupo Ibérica

its_anandrjs
Champion III
Champion III

Hi,

As i under stand you need to create another column as flag column which checks the requirement as you say =if ([Email ID of Notice Recipient] = [Email Address], 'Yes', 'No') as Flag Column but table should connect with each other with email id column .

Reagrds,

Anand

its_anandrjs
Champion III
Champion III

Hi,

You need to write so code like the below this for two tables

Table1:

LOAD [Matter ID],

     [Name of the Matter],

     [Email ID of Notice Recipient]

FROM

Data.xlsx

(ooxml, embedded labels, table is Sheet4);

   

Table2:

LOAD manager_name,

     [Email Address],

     Job_Title,

     If(Exists([Email ID of Notice Recipient], [Email Address]), 'Yes', 'No') AS Available

FROM

Data.xlsx

(ooxml, embedded labels, table is Sheet5);

Regards,

Anand

its_anandrjs
Champion III
Champion III

Hi,

If you want those data which are only available in this two tables then you need to put

Where exists([Email ID of Notice Recipient], [Email Address]);

in load statement after with above code.

Regards,

Anand

renjithpl
Specialist
Specialist
Author

so how will i get yes or no in a pivot table or straight table..

i am looking a output like this

Matter IDDate and Time ReceivedTotal Number of Recipients=subfield([Email ID of Notice Recipient], '@', 1)Available
4447198/16/2011 1:50:00 . PM1heather.k.emmertYes
Miguel_Angel_Baeyens

Renjith, did you change your script as suggested above using the EXISTS() function?

renjithpl
Specialist
Specialist
Author

yes i corrected... and in my pivot table i assigned Code but its not giving the correct answer..

its_anandrjs
Champion III
Champion III

Hi,

Yes you are able to make a pivot table or straight table for this you need to conditionally load the data or if it is only for availbale = Yes then sort data according to that data.

Regards

Anand

renjithpl
Specialist
Specialist
Author

It works fine, except, if the email doesnt exist it shows '-', its not showing 'No'