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

Count conditional text Field

Hi,

for the following table

Immagine5.png

I have to count the number of rows that NOT include the char 'M'.

I built a table with a Dimension, and the expression is the Count of rows:

Immagine6.png

How could I calculate the column '# Offerte disponibili'?

Thank you in advance.

Franco

1 Solution

Accepted Solutions
sunny_talwar

May be this

Count({<CD_SOURCING_FN_AUT = E({<CD_SOURCING_FN_AUT = {"*M*"}>})>} CD_SOURCING_FN_AUT)

View solution in original post

4 Replies
sunny_talwar

May be this

Count({<CD_SOURCING_FN_AUT = E({<CD_SOURCING_FN_AUT = {"*M*"}>})>} CD_SOURCING_FN_AUT)

frank1982
Contributor III
Contributor III
Author

It works!

Great!

Thank you very much!

Franco

frank1982
Contributor III
Contributor III
Author

I'm sorry, I have another question : how I have to write the expression if I would like to add another condition?

For example, I want to obtain the strings that don't include chars 'M' and string 'prova'.

thank you.

Franco

sunny_talwar

May be this

Count({<CD_SOURCING_FN_AUT = E({<CD_SOURCING_FN_AUT = {"*M*", "*prova*"}>})>} CD_SOURCING_FN_AUT)