Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
taz803
Contributor III
Contributor III

creation d'un autre champs

j'ai deux champs Champ1 et Champ2 ( les deux sont des chaines de caractère  ) je veux faire :

Champ3=Champ1-Champs2

comment je peux faire ca merci 

3 Replies
Dref278
Creator
Creator

Bonjour @taz803 ,

En faisant cette opération, que voulez vous évaluez ?

S'agit-il de nombre stockés en type caractère ou souhaitez vous comparer deux chaines de caractères pour voi si elles sont identiques ?

Cdlt,

Pour avoir une bonne réponse, il faut poser la bonne question (Chat GPT, 2023)
taz803
Contributor III
Contributor III
Author

champs1 contenant liste des noms ( David , Pierre , Paul , Jean, Cedric )

champs2 contient liste des noms ( David , Jean )

donc je peux afficher juste  ( Pierre , Paul , Cedric )

Dref278
Creator
Creator

J'ai testé cette formule, elle fonctionne : 

concat( if(wildmatch("Champ 2",'*'&subfield( [Champ 1],', ',ValueLoop(1,SubstringCount([Champ 1],',')+1,1))&'*'),NULL(),subfield([Champ 1],', ',ValueLoop(1,SubstringCount([Champ 1],',')+1,1)) ) ,', ')

Le post original :

https://community.qlik.com/t5/QlikView-App-Dev/How-to-subtract-string-from-a-string-subfield-wise/m-...

 

Cdlt,

Pour avoir une bonne réponse, il faut poser la bonne question (Chat GPT, 2023)