Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
hammermill21
Creator III
Creator III

Count if Contains Specific Letters

HELLO,

I'm trying to get a count of a standard that contains the letters EC in there.

I have a list of standards that have data like:

EC.02.05.03

EC.02.05.03

EC.02.05.03

EM.02.05.03

LC.02.05.03

So I'm trying to count how many start with EC and everything I've tried doesn't work.

I tried the following:

IF(INDEX(STANDARD,'EC')>0

COUNT(IF(STANDARD='EC',STANDARD))

if(trim(STANDARD)='EC'

Nothing seems to work

1 Solution

Accepted Solutions
sunny_talwar

Try this

Count({<STANDARD = {"EC*"}>}STANDARD)

View solution in original post

4 Replies
sunny_talwar

Try this

Count({<STANDARD = {"EC*"}>}STANDARD)

sunny_talwar

Or this

Count(If(WildMatch(STANDARD, 'EC*'), STANDARD))

petter
Partner - Champion III
Partner - Champion III

If( STANDARD Like 'EC*' , ...... )

https://help.qlik.com/en-US/sense/February2018/Subsystems/Hub/Content/Scripting/Operators/StringOper...

or

Count( {<STANDARD={'EC*'}>} STANDARD)

hammermill21
Creator III
Creator III
Author

Thank you for the link!