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: 
Not applicable

If and not like...

Hi everybody,

i gat an issue i have a table, and i want to add a field but i don't manage with the conditionnal logics.

FACTURE_INDICATEUR3:

LOAD

    

     FACTURE_INC.GPE_CLIENT,

     FACTURE_INC.CodifCreno,

     Catalogue_marque,

     catalogue_famille,

     if ((catalogue_famille='LEGUMES 4G') and (FACTURE_INC.GPE_CLIENT='RESTALLIANCE') and (Catalogue_marque  not like API* ),'OK','Interdit') as Test

  

FROM

FACTURE_INDICATEUR.QVD

(qvd);

But there is a problem with the not like.. any one can help me?

Thanks you so much ! And sorry for my bad english !

1 Solution

Accepted Solutions
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

FACTURE_INDICATEUR3:

LOAD

   

     FACTURE_INC.GPE_CLIENT,

     FACTURE_INC.CodifCreno,

     Catalogue_marque,

     catalogue_famille,

     if ((catalogue_famille='LEGUMES 4G') and (FACTURE_INC.GPE_CLIENT='RESTALLIANCE') and (not Catalogue_marque   like 'API*' ),'OK','Interdit') as Test

 

FROM

FACTURE_INDICATEUR.QVD

(qvd);

View solution in original post

3 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try and not wildmatch(Catalogue_marque, 'API*')


talk is cheap, supply exceeds demand
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

FACTURE_INDICATEUR3:

LOAD

   

     FACTURE_INC.GPE_CLIENT,

     FACTURE_INC.CodifCreno,

     Catalogue_marque,

     catalogue_famille,

     if ((catalogue_famille='LEGUMES 4G') and (FACTURE_INC.GPE_CLIENT='RESTALLIANCE') and (not Catalogue_marque   like 'API*' ),'OK','Interdit') as Test

 

FROM

FACTURE_INDICATEUR.QVD

(qvd);

Not applicable
Author

Thanks a lot everybody !!!