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: 
eduardo_r
Contributor III
Contributor III

Comando WHERE

Estou tentando fazer com que apareça só os itens da tabela que me interessam.  A tabela de pedidos tem situações e preciso que apareça só os cancelados e em falta. Pra isso fui tentar aplicar o comando where na syntax do script porém não estou conseguindo, como faço para usa-lo. Já tentei usar o comando AND embaixo porém ele fica mostrando como erro. Não sei como usar o comando script

Capturar.PNG

Labels (1)
1 Solution

Accepted Solutions
hic
Former Employee
Former Employee

You have the semicolon in the wrong place. And you have a comma too much in the WHERE clause. Try

... (txt, codepage is ...) Where SIT_PED<>'ATT' ;
or
... (txt, codepage is ...) Where not Match(SIT_PED,'ATT','FIN') ;

 

View solution in original post

2 Replies
hic
Former Employee
Former Employee

You have the semicolon in the wrong place. And you have a comma too much in the WHERE clause. Try

... (txt, codepage is ...) Where SIT_PED<>'ATT' ;
or
... (txt, codepage is ...) Where not Match(SIT_PED,'ATT','FIN') ;

 

sidhiq91
Specialist II
Specialist II

@eduardo_r  You can use the match function and it is written as below:

where not match(SIT_PED,'ATT','FIN');