Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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