Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Dúvida em Set Analysis, count de uma str

Pessoal, bom dia.

Preciso resolver um problema aonde vejo os casos "OK" e "NOK" em uma determinada situação.

Quando preciso contar os casos "OK", utilizei a expressão e deu certo:

Count({<b.TesteCG = {1},TesteLoc = {'TRECHO'}>}b.Prefixo)

Quando preciso contar os casos "NOK", me retorna zero:

Count({<b.TesteCG = {1}, TesteLoc = {' <> TRECHO'} >}b.Prefixo)

Capturar.PNG

Como consigo resolver?

Obrigado!

Labels (2)
1 Solution

Accepted Solutions
lucianosv
Specialist
Specialist

Pode parecer ruim, mas como a solução anterior que deveria funcionar não funcionou, tente assim:

Count({<b.TesteCG = {1}>}b.Prefixo)

-

Count({<b.TesteCG = {1},TesteLoc = {'TRECHO'}>}b.Prefixo)

View solution in original post

5 Replies
sunny_talwar

Try this:

Count({<b.TesteCG = {1}, TesteLoc -= {'TRECHO'} >}b.Prefixo)


Note: a small negative sign before =

Not applicable
Author

Hello Sunny T, thanks for your reply!

Unfortunately, the result continues to zero.

I used TRECHO as a string, that could influence the result?

sunny_talwar

What about this:

Count({<b.TesteCG = {1}, TesteLoc = e({<TesteLoc = {'TRECHO'}>})>}b.Prefixo)

lucianosv
Specialist
Specialist

Pode parecer ruim, mas como a solução anterior que deveria funcionar não funcionou, tente assim:

Count({<b.TesteCG = {1}>}b.Prefixo)

-

Count({<b.TesteCG = {1},TesteLoc = {'TRECHO'}>}b.Prefixo)

Not applicable
Author

Como só estou trabalhado com 2 variáveis, resolveu.

Depois estudo para entender o que aconteceu.


Obrigado Luciano!