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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Tenuki
Contributor III
Contributor III

Custom category for products

Hello, I would like to create a group for products based on different conditions, linked to differents tables linked to my products.

For instance I create a table like this :

ProductCategory1:
LOAD 
ProductID,
    'ArticleCategory1'
FROM SuppliersProduct
WHERE LinkedSupplier = 'X'
AND SupplierID = 500
;
 
Then I load my product table with the ProductID to make the link.
This create differents fields based on my customs tables.
How to have only one field, grouping the customs categories ?
Labels (2)
1 Solution

Accepted Solutions
JHuis
Creator III
Creator III

Concatenate is creating one table from multiple tables. 

This will work i think

 

ProductTable:

LOAD ProductID, PreparationTime, 'Seafood'  as ProductCategory,

FROM Seafood.xlsx;

Concatenate(ProductTable) 

LOAD ProductID, 'ChineeseProduct' as ProductCategory,

FROM SuppliersProduct

WHERE 

LinkedSupplier = 'B'
AND SupplierID = 600;
 
ProductTable:
ProductID, ProductName...
FROM Products
 
SalesDetails:
SalesLineID, SalesOrderID, ProductID, Amount as Revenue...
FROM Sales

View solution in original post

4 Replies
JHuis
Creator III
Creator III

I hope i got it right but you have to this i think:

ProductCategory:
LOAD 
ProductID,
    'ArticleCategory1' as ArticleCategory
FROM SuppliersProduct
WHERE LinkedSupplier = 'X'
AND SupplierID = 500;
 
Concatenate(ProductCategory)
LOAD 
ProductID,
    'ArticleCategory2' as ArticleCategory
FROM SuppliersProduct
WHERE LinkedSupplier = 'B'
AND SupplierID = 600;

 

etc. 

Tenuki
Contributor III
Contributor III
Author

I have multiple table to link, one is coming from excel file

My tables look like this :

Table1 :

LOAD ProductID, PreparationTime, 'Seafood'

FROM Seafood.xlsx;

Table2 : 

LOAD ProductID, 'ChineeseProduct'

FROM SuppliersProduct

WHERE 

LinkedSupplier = 'B'
AND SupplierID = 600;
 
ProductTable:
ProductID, ProductName...
FROM Products
 
SalesDetails:
SalesLineID, SalesOrderID, ProductID, Amount as Revenue...
FROM Sales
 
Thanks for your help 🙂
JHuis
Creator III
Creator III

Concatenate is creating one table from multiple tables. 

This will work i think

 

ProductTable:

LOAD ProductID, PreparationTime, 'Seafood'  as ProductCategory,

FROM Seafood.xlsx;

Concatenate(ProductTable) 

LOAD ProductID, 'ChineeseProduct' as ProductCategory,

FROM SuppliersProduct

WHERE 

LinkedSupplier = 'B'
AND SupplierID = 600;
 
ProductTable:
ProductID, ProductName...
FROM Products
 
SalesDetails:
SalesLineID, SalesOrderID, ProductID, Amount as Revenue...
FROM Sales
Tenuki
Contributor III
Contributor III
Author

It worked, I just forgot to rename my field.

Thank you