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: 
Anonymous
Not applicable

Match Not working

Hi

I am trying to match a field with the selections made for that field but it's not working and i  can't see what I am doing wrong.

The field is BGCompany which contains '[Acc - Superbia]'

The Selections for the field contains '[Acc - New Heights],[Acc - Superbia] ' using =GetFieldSelections(BGCompany,',',50)

The Match statement used is =Match(BGCompany,GetFieldSelections(BGCompany, ',',50))  which returns 0 where I am expecting something > 0.

I am sure that I am missing something very simple, please help.

1 Solution

Accepted Solutions
vishsaggi
Champion III
Champion III

may be try this?

= Substringcount(BGCompany, GetFieldSelections(BGCompany))

View solution in original post

3 Replies
vamsee
Specialist
Specialist

Hi George,

Try

If your looking for count

=SubField(GetFieldSelections(BGCompany,','), 'of',1)

If you are looking for values

=SubField(GetFieldSelections(BGCompany,',',50), 'of',1)

vishsaggi
Champion III
Champion III

may be try this?

= Substringcount(BGCompany, GetFieldSelections(BGCompany))

Anonymous
Not applicable
Author

Thanks for the answers this worked I just had to reverse the order of the parameters

Substringcount( GetFieldSelections(BGCompany),BGCompany)

Happy Me