Skip to main content
Announcements
YOUR OPINION MATTERS! Please take the Qlik Experience survey you received via email. Survey ends June 14.
cancel
Showing results for 
Search instead for 
Did you mean: 
caseyjohnson
Contributor III
Contributor III

Blending tables ... generate a new field

Hoping someone can help me with this. I would like to see how to join/display table info via a couple of fields from multiple tables. Short version is I need the Table B gen_name field to generate based on the matching model_id fields ..... IF the Table A model_year is between the gen_start_year and gen_end_year.

example: IF (model_year >= gen_start_year & <= gen_end_year, display gen_name)

Table A:

LOAD

    model_id,

    model_year,

    etc....

FROM ...

Table B:

LOAD

    model_id,

    gen_start_year,

    gen_end_year,

    gen_name

FROM ...

I'm assuming that this process would be best performed in the load editor and I would appreciate seeing what that may look like. I'm still a little unsure where to put additional scripts in the editor so if you could show what the entire script (tables & all) looks like, that would really help me out.

3 Replies
caseyjohnson
Contributor III
Contributor III
Author

Thank you for the information. It seems to be the right approach, but I can't seem to get it to work.

sunny_talwar

May be we can help if you are able to provide a sample