Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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
Luminary Alumni
Luminary Alumni

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

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


talk is cheap, supply exceeds demand
jagan
Luminary Alumni
Luminary Alumni

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 !!!