Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Not applicable

GetFieldSelection Expression

Hi,

I got the following expression...

If(getFieldSelections(Object) like 'A' , 1, 0)

In the Objectlist are the attributes A,B and C!

When I select A I will become 1, but when I select A and B I become 0. But the expression should give me number 1 when I checked A and when i check another attribute like B, too.

How to build this in Qlik Sense?

Greetz

1 Solution

Accepted Solutions
MVP
MVP

Re: GetFieldSelection Expression

or this:

=If(WildMatch(Concat(Object, ','), '*A*'), 1, 0)

2 Replies
MVP
MVP

Re: GetFieldSelection Expression

Try this may be:

=If(WildMatch(GetFieldSelections(Object), '*A*'), 1, 0)

MVP
MVP

Re: GetFieldSelection Expression

or this:

=If(WildMatch(Concat(Object, ','), '*A*'), 1, 0)

Community Browser