Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi there, I have the following situation//tables:
[Suppliers]:
Load
SupplierID,
SupplierName,
....
[Items]:
Load
ItemID,
ItemDescription,
ItemSupplierID1,
ItemSupplierID2,
ItemSupplierID3
....
In the app I want to create an overview of all items including the name of the Supplier1-3. Though a mapping load could be used to solve that one, I also want to be able to select a Supplier and view ALL ITEMS linked to that supplier, whether it is supplier1, 2 or 3.
Any suggestions how to solve that?
Hi there, I would create a table this way:
ITEM_to_SUPPLIER:
LOAD DISTINCT
ItemID
ItemSupplierID1 as SupplierID
RESIDENT Items;
CONCATENATE (ITEM_to_SUPPLIER)
LOAD DISTINCT
ItemID
ItemSupplierID2 as SupplierID
RESIDENT Items;
CONCATENATE (ITEM_to_SUPPLIER)
LOAD DISTINCT
ItemID
ItemSupplierID3 as SupplierID
RESIDENT Items;
Hope it helps.
[Items]:
Crosstable (SupplierNo, SupplierID, 2)
Load
ItemID,
ItemDescription,
ItemSupplierID1,
ItemSupplierID2,
ItemSupplierID3
From ...
See also https://community.qlik.com/t5/Qlik-Design-Blog/The-Crosstable-Load/ba-p/1468083
Hi there, I would create a table this way:
ITEM_to_SUPPLIER:
LOAD DISTINCT
ItemID
ItemSupplierID1 as SupplierID
RESIDENT Items;
CONCATENATE (ITEM_to_SUPPLIER)
LOAD DISTINCT
ItemID
ItemSupplierID2 as SupplierID
RESIDENT Items;
CONCATENATE (ITEM_to_SUPPLIER)
LOAD DISTINCT
ItemID
ItemSupplierID3 as SupplierID
RESIDENT Items;
Hope it helps.
Though both suggestions might work, I went for the second one (from @AG-gugelbisolutions). Works like a charm!