Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Viviane
Contributor II
Contributor II

Créer une nouvelle colonne à partir d'une liste de mot cléf et d'un résumé de projet

Bonjour,

Je possède une table principale "Projets" avec des résumés de projet et une table "Keyword" avec une liste de mot clef. Je souhaiterai créer une nouvelle colonne à ma table "Projets" en mettant les mots clés présents dans les résumés de projet.

Par exemple :

Si j'ai un résumé de projet contenant le mot aviation, pêche, dune et que ces trois mots font parties de ma table "Keyword", alors QlikSense ajoutera dans ma colonne "mots-clés" aviation, pêche et dune. Cela me permettra par la suite de faire un tagcloud en fonction de la récurrence des mots clefs.

Merci d'avance,

Viviane

Labels (4)
1 Reply
vinieme12
Champion III
Champion III

You will need to flag each keyword separately and then consolidated into a keywords table

Refer below

raw:
Load
*
,if(SubStringCount(ProjectDescription,'aviation'),1) as aviation
,if(SubStringCount(ProjectDescription,'fishing'),1) as fishing
,if(SubStringCount(ProjectDescription,'dunes'),1) as dunes
Inline [
Project,ProjectDescription
A,random text with keywords aviation and fishing and dunes
B,random text with keywords aviation
C,random text with keywords fishing and fishing again
];


CrossTable(Keyword,Count)
Keywords_Count:
Load
Project
,aviation
,fishing
,dunes
Resident raw;

 

In your chart you can then Use

Dimension = Keyword 

Measures

=sum(Count)

=concat(distinct Project,', ')

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.