Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
ch_riadh
Contributor

Like function

How can i Count ID if the NAME start with 'A'.

I try this expression

Count(  if  (Like (Name = 'A*') , ID )

but it s not working

2 Replies
MVP
MVP

Re: Like function

Like Function ?

Count(IF(Name Like 'A*',ID))

or

Count({<Name = {'A*'}>}ID)

or

COUNT(If(WildMatch(Name,'A*'),ID))

or

In your script, create a field as IDFlag just below the Name Field

If(Name Like 'A*',1,0) as IDFlag

Now You can use as below

SUM({<IDFlag = {1}>}IDFlag)

Re: Like function

Hi,

Check this

Count({<Name={'A*'}>} ID)


Please do not create multiple threads.

Its answered here.

http://community.qlik.com/thread/142544


Regards

ASHFAQ

Community Browser