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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

IF...

Hola, necesito hacer algo simple, pero no se si lo estoy encarando bien..

Necesito contar los "servidores" cuyo nombre no contengan la palabra 'firewall'...

yo estoy intentando hacer algo asi pero no funciona...

Alguien tiene una mejor idea?

Gracias!!

if (Descripción <> '%Firewall%' then count(servidor), null)

1 Solution

Accepted Solutions
Colin-Albert
Partner - Champion
Partner - Champion

I don't know Spanish, but this is how to do a "not like" comparison.

if (wildmatch(Descripción , '*Firewall*') =0 ,count(servidor))

View solution in original post

7 Replies
MK_QSL
MVP
MVP

COUNT({$<Descripción  -= {'*Firewall*'}>}servidor)

or

COUNT({$<Descripción  -= {'Firewall'}>}servidor)

Colin-Albert
Partner - Champion
Partner - Champion

I don't know Spanish, but this is how to do a "not like" comparison.

if (wildmatch(Descripción , '*Firewall*') =0 ,count(servidor))

Not applicable
Author

your answer was very helpful, I am beginner with qlikview!

Not applicable
Author

Excusme Albert

Can I ask you a more question?
How I can do the same as I did before but more fields ... for example ...
  if (wildmatch (Description, '* A *', '* B *', '* C *', '* D *', '* E *', '* F *', '* G *', '* H * ',' * I * ',' * J * ',' * K * ',' * L * ',' * M * ',' * N * '= 0, count (Server))
There will be another way to do this calculation? because it does not work ...
Thank you!
,

MK_QSL
MVP
MVP

Use the same in my answer and let me know if it is working or not.

Not applicable
Author

Manish,

Doesn't work fine, because the result that show me is -1 in all cases....

Colin-Albert
Partner - Champion
Partner - Champion

Hi Daniela,

Your text has spaces before and after each letter, so is looking for data that does not match "* A *" or "* B *" .

Check for any extra spaces in your list.

If you want to test if the data does match the list, then change the test to if(wildmatch() =1, value)

Colin