Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
lukenathan
Contributor II
Contributor II

Prevent table association without Qualify statement

Is there a way to prevent these two tables from associating other than Qualify and Unqualify statements?

Tbl1:

NoConcatenate

LOAD

    "CategoryID",

    "ProductID",

    "QuantityPerUnit",

    "SupplierID",

    "ItemCost",

    "ItemPrice",

    "UnitsInStock",

    "UnitsOnOrder",

    "UnitCost",

    "CurrentPrice",

    "ProductName",

FROM [lib://SOP.xlsx]

(ooxml, embedded labels, table is [Products])

Where WildMatch([ProductName],'*Jacuzzi*');

Tbl2:

NoConcatenate

LOAD

     "CategoryID",

    "ProductID",

    "QuantityPerUnit",

    "SupplierID",

    "ItemCost",

    "ItemPrice",

    "UnitsInStock",

    "UnitsOnOrder",

    "UnitCost",

    "CurrentPrice",

    "ProductName",

FROM [lib://SOP.xlsx]

(ooxml, embedded labels, table is [Products])

Where WildMatch([ProductName],'*Wine Glass*');

7 Replies
Lisa_P
Employee
Employee

Hi Luke,

Can you explain what you are trying to do and why ?

Lisa

ogautier62
Specialist II
Specialist II

Hi,

Hi,

why don't you create one unique table with one load and wildmatch with or ? !!!!

regards

lukenathan
Contributor II
Contributor II
Author

Hi Lisa, I want to add fields to Tbl1 and Tbl2 then create a new table with the contents from both. If I don't separate them to begin with I will not be able to add the field records that I want.

lukenathan
Contributor II
Contributor II
Author

Thanks Olivier sounds like a good idea.  Can you show me what that would look like with this?

Tbl1:

NoConcatenate

LOAD

    "CategoryID",

    "ProductID",

    "QuantityPerUnit",

    "SupplierID",

    "ItemCost",

    "ItemPrice",

    "UnitsInStock",

    "UnitsOnOrder",

    "UnitCost",

    "CurrentPrice",

    "ProductName",

FROM [lib://SOP.xlsx]

(ooxml, embedded labels, table is [Products])

Where WildMatch([ProductName],'*Jacuzzi*');

Tbl2:

NoConcatenate

LOAD

     "CategoryID",

    "ProductID",

    "QuantityPerUnit",

    "SupplierID",

    "ItemCost",

    "ItemPrice",

    "UnitsInStock",

    "UnitsOnOrder",

    "UnitCost",

    "CurrentPrice",

    "ProductName",

FROM [lib://SOP.xlsx]

(ooxml, embedded labels, table is [Products])

Where WildMatch([ProductName],'*Wine Glass*');

Lisa_P
Employee
Employee

What fields do you want to add ?

marcus_sommer

It would be just:

Tbl1:

NoConcatenate

LOAD

    "CategoryID",

    "ProductID",

    "QuantityPerUnit",

    "SupplierID",

    "ItemCost",

    "ItemPrice",

    "UnitsInStock",

    "UnitsOnOrder",

    "UnitCost",

    "CurrentPrice",

    "ProductName",

FROM [lib://SOP.xlsx]

(ooxml, embedded labels, table is [Products])

Where WildMatch([ProductName],'*Jacuzzi*', '*Wine Glass*');

- Marcus

Lisa_P
Employee
Employee

Hi Marcus,

You only need to load the table once and you can put both criteria in the where at the end using like..

Tbl1:

LOAD

    "CategoryID",

    "ProductID",

    "QuantityPerUnit",

    "SupplierID",

    "ItemCost",

    "ItemPrice",

    "UnitsInStock",

    "UnitsOnOrder",

    "UnitCost",

    "CurrentPrice",

    "ProductName",

FROM [lib://SOP.xlsx]

(ooxml, embedded labels, table is [Products])

Where ProductName like '*Jacuzzi*' or ProductName  like '*Wine Glass*';