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

Multiple values in set expression

Hi,

I have a variable, vYear=GetFieldSelections(Year) and a set expression using this variable -

Count({<Year={"$(=$(vYear))"}>}Distinct [Groups Key]).

The above set expression works when a single value is selected in the Year filter, but when I select multiple values in the filter the set expression returns null. Can anyone please guide me how to fix this expression ?

Appreciate your help !

Thanks,

Deepika

10 Replies
pathiqvd
Creator III
Creator III

Hi,

   Try This,

=count({<Year1=P(Year2)>} Distinct [Groups Key])

Year1 --> First table year field name take

Year2 --> Second table year field name take

Regards,