Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Problem With Where // Problemas uso where

Good morning,

i need to load one table in qlikview using oposite sentence of like (Something like 'where field  Not Like ...') because i need that my rows doesn´t have one number. if i need to load only rows with number 2 in any position i can write this:

load

     *

from .... (qvd)

     where pruebas like '*2*';

but i don´t know how to load all data that not contains number 2 in any position (for example load number 1, 3 ,4 etc.).

regards,

Diego Rueda

***********************************************************************************************************************************************************************

Buenos días,

Necesito cargar una tabla que no contenga cierto número en los registros, por ejemplo que ningun registro contenga el número 2 en ninguna posicion usando una sentencia opuesta al Like. Para el caso del Like (si quisiera traer el número 2 ) seria algo asi:

load

     *

from .... (qvd)

     where pruebas like '*2*';

pero no tengo claro como realizar la carga de todo lo opuesto al número 2 ( por ejemplo cargar todo lo que contenga el 1, 3, 4, etc.)

Agradezco su colaboracion.

Att,

Diego Rueda

Labels (1)
3 Replies
Not applicable
Author

Hi,

you can try with WildMatch() function.

Something like:

Where not WildMatch(FieldName,'2*');

Hope it helps

Regards

Giampiero

Not applicable
Author

Hi try this:

WHERE NOT (pruebas like '*2*');

Anonymous
Not applicable
Author

Hi,

  Please find attachment of application,i taking id's those are having '2' in any position, keepchar function will be use full for you.

Regards