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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Douwe_KB
Contributor II
Contributor II

How to link category group values to category group?

Hello,


I have a field called [Klantinformatie], which stores data about customers, such as to which category of businesses they belong: 

 

[Klantinformatie]:
LOAD
                [ABAN8]                                                                                                            as "Klantnummer",
                [ABALPH]                                                                                                           as "Klantnaam",
                //[ABAT1]                                                                                                         as "Klanttype",
                [ABAC01],
    ApplyMap('MapDC', ABAC01,'-')                                                                          as "Vestiging",
                [ABAC03],                                                                                                                                                                        
    ApplyMap('MapVertegenwoordiger', ABAC03,'Intern')                             As "Vertegenwoordiger",
                [ABAC06],
    ApplyMap('MapKlantgroep', ABAC06,'-')                                                         as "Klantgroep"
FROM [lib://QlikView JDE extractie/F0101.QVD]
(qvd);




 

I also have a seperate file which stores the category of business + product category and the desired percentage of sales per product category, which looks as follows: 

 

Douwe_KB_0-1680180636189.png

Which I load in as follows: 

 

 

Koppelingen:
LOAD
Koppeling,
Percentage
FROM [lib://AttachedFiles/Koppelinggg.xlsx]
(ooxml, embedded labels, table is Blad1);

 

Suppose I have a company "Test" which belongs to the "CAT" category of businesses. How do I map these values for all product categories to the "CAT" category?

 

All help is appreciated!

Labels (1)
1 Reply
Or
MVP
MVP

The above doesn't seem to contain a field called Klantinformatie (that's the internal name of the table, but not a field), nor a field called Company, so I'm a bit confused as to what you're trying to do exactly.

Generally speaking, if you have a table that contains Company and Koppeling, it will automatically create a key to the Koppeling field in the existing load by virtue of identical field names.