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

Announcements
Streamlining user types in Qlik Cloud capacity-based subscriptions: Read the Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Meghann_MacDonald

Load Data Dependent on Values from Previous Table

Hi all,

I want to only load values from Table B that are labeled 'Lead' in Table A.

Ex:

[Table A]:

LOAD

[Registration Email],

[Status],

[user_id]

From ABC;

 

[Table B]:

email as [Registration Email],

Alternate data (leadinfo, etc)

From XYZ (where the email in Table A is listed as 'Lead' for [Status];

 

Is this possible?

Meghann

12 Replies
QFabian
MVP
MVP

HI @Meghann_MacDonald , it is posible, you can use exists function in where of second load :

[Table A]:

LOAD

[Registration Email],

[Status],

[user_id]

From ABC

Where Status = 'Lead'; //do this or create another table with the values needes (Status = 'Lead')

 

[Table B]:

email as [Registration Email],

Alternate data (leadinfo, etc)

From XYZ

where exists([Registration Email], email);

 

Greetings!! Fabián Quezada (QFabian)
did it work for you? give like and mark the solution as accepted.
Meghann_MacDonald
Author

I think this works perfectly. Nifty trick I will use later on. It does create a bit of roundabout loading but it seems like that is the best way to get what I need. Thank you so much!

Meghann_MacDonald
Author

Hi Anil, the destination table is just what I would LIKE to be able to pull. I just used Tiago's process to do this of loading a temp table from A with only the emails I want, and then loading B with a left keep of (temp). This worked.

I don't have experience loading inline like you listed and I have >8,000 emails so I'm not sure that would work...

Thank you for the help!