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: 
Rafal42
Contributor
Contributor

Enter More Than One String Value In A Variable

Hello,

I am trying to input more than one string in a variable and the best I could come with is this...

MATCH
(
    TITLE,
        'Engine Annual Requirements',
        'Transmission Annual Requirements',
        'Suspension Annual Requirements',
        'Exterior Annual Requirements',
)
 
I am creating this variable in the front end. It is called AnnualCertification, I want to use it in multiple KPIs. One such KPI would have set analysis like this...
 
COUNT({<CERTIFICATION_TITLE = {$(vAnnualCertification)}>} DISTINCT I_USR)
 
I am getting an error when I do this. What am I missing here? I have a feeling it's something minor. Thanks in advance.
Labels (1)
1 Solution

Accepted Solutions
marcus_sommer

It's not a real error else the interpreter couldn't resolve the content as a single field, string, variable or a function - you could just ignore it.

View solution in original post

4 Replies
marcus_sommer

Just listing the values within the variable is enough, like: var: 'a', 'b', 'c'

and then: count({< Field = {$(var)}>} Field)

MarcoWedel

Hi, one example:

vAnnualCertification = 'Engine Annual Requirements','Transmission Annual Requirements','Suspension Annual Requirements','Exterior Annual Requirements'

 

MarcoWedel_1-1715672256003.png

 

MarcoWedel_0-1715672236688.png

 

Rafal42
Contributor
Contributor
Author

Rafal42_0-1715702383617.png

I always get an error when I insert more than one string in the variable.

marcus_sommer

It's not a real error else the interpreter couldn't resolve the content as a single field, string, variable or a function - you could just ignore it.