Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
kangkaw
Contributor II
Contributor II

EXCLUDE NULL VALUES ON THE QLIK SENSE SCRIPT

Hello everyone,

I want to exclude null values from  some fields when loading scprit, how can I do that please?

Here is an exemple of my script:

TABLE 1:
LOAD
FIELDS1,

FIELDS2, *

FIELDS3,

FIELDS4
FROM [lib: // PATH]
(txt, codepage is 28591, embedded labels, delimiter is ';', msq);

 

How to exclude the null values of the field1 / or of several fields at the same time for example?

 

Thank you for your help 🙂

2 Solutions

Accepted Solutions
Taoufiq_Zarra

@kangkaw  do you mean ?

load

....

where len(trim(field1))>0

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉

View solution in original post

Taoufiq_Zarra

@kangkaw 

si c'est exactement le champ tu peux ajouter dans where par exemple :

where Match(FIELDS1,'xx','yy','zzz','647H','HOU89')>0

sinon si contient les valeurs , tu peux changer Match par where wildmatch(FIELDS1,'*xx*','*yy*','*zzz*','*647H*','*HOU89*')>0

 

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉

View solution in original post

3 Replies
Taoufiq_Zarra

@kangkaw  do you mean ?

load

....

where len(trim(field1))>0

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
kangkaw
Contributor II
Contributor II
Author

Merci @Taoufiq_Zarra 

j'ai une deuxième question stp si tu as la réponse:

Si je veux pour un champs donné n'avoir que certaine valeur comment faire pour cela au niveau du Script?

EX: pour le champs FIELDS1 ne retenir que les valeurs suivantes :''xx,'yy','zzz','647H','HOU89'

 

Merci d'avance.

 

Taoufiq_Zarra

@kangkaw 

si c'est exactement le champ tu peux ajouter dans where par exemple :

where Match(FIELDS1,'xx','yy','zzz','647H','HOU89')>0

sinon si contient les valeurs , tu peux changer Match par where wildmatch(FIELDS1,'*xx*','*yy*','*zzz*','*647H*','*HOU89*')>0

 

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉