Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

New field base on fields from 2 different table

TableA:

LOAD

[COUNTRY NAME]

FROM

somewhere

TableB:

LOAD

[Product Number]

FROM

somewhere else

I have 2 tables as shown above. COUNTRY NAME contains countries like USA, England, Indonesia etc. Product Number contains product numbers like 1,2,3,4,5 etc

I want to create a new TableC as shown below.

TableC:

IF([COUNTRY NAME] = 'USA' AND [Product Number] = '1', 'High quality goods') AS [Quality of Goods]

How can I use the fields from TableA and TableB to do my expression in TableC? I am doing all these in the qlikview editor. Thank you

4 Replies
Anil_Babu_Samineni

May be this?

TableA:

LOAD

[COUNTRY NAME]

FROM

somewhere;

TableB:

LOAD

[Product Number]

FROM

somewhere else;


TableC:

Noconcatenate

Left Join(TableA)

LOAD    [COUNTRY NAME],

               [Product Number]

               IF([COUNTRY NAME] = 'USA' AND [Product Number] = '1', 'High quality goods') AS [Quality of Goods]

Resident TableB;

Drop Tables TableA, TableB;

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Not applicable
Author

It gives me an error "Field not found". The field which is not found is the [COUNTRY NAME]

MindaugasBacius
Partner - Specialist III
Partner - Specialist III

What is the key field to TableA and TableB?

Anonymous
Not applicable
Author

Hi Anil,

I have attached qvw ,PFA.

Thanks

Paridhi