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

Recherche de mot clé dans une chaîne de caractères

Bonjour à tous ,

Je veux créer une dimension à partir d'une dimension déjà existante ( Je veux avoir supplier à partir de Description);

à gauche j'ai mon champ Description et à droite j'aimerais avoir le champs SUPPLIER. Je veux creer une colonne Supplier pour l'utiliser  comme une liste de selection. Merci de votre aide. Cordialement.Supplier.PNG

4 Replies
alexandros17
Partner - Champion III
Partner - Champion III

It is easy with string functions but you must define a rule because sometimes Supplier is the left part, other times is the right part of the column Description.

Not applicable
Author

Thanks Alessandro,

The rules it's easy,

For example, if in the description columns we find  Guess Computacenter Governance and computacenter AMTF the supplier must be Computacenter.

whatever the position of supplier in the description columns  I want to obtains the name of supplier.

Not applicable
Author

Bonjour John,

Est-ce que la solution proposée par HIC ici te convient ?

Data Cleansing

Cordialement,

Xavier.

Not applicable
Author

Bonjour Xavier,

Cette approche surtout l'applymap repond à un autre autre soucis que j'avais rencontré.

Dans mon cas j'ai opté pour une solution avec des wildmatch.

 

if

(WildMatch([IO Description],'*ACCENTURE*'),'ACCENTURE'

     ,  if(WildMatch([IO Description],'*DATA4*',),'DATA4'

          )

) AS Supplier