Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Problems with set analysis sytaxis

Hi,

I have this set analysis expresion:

=sum({$<Par={'RTM - SME'}>}MLoc)

and it works correctly.

But I also have a variable called Variable1 which has a string value:

Variable1='RTM - SME'

I am not able to write correctly Variable1 into the set expression.

Even more, I would like to use '*' before and after the string 'RTM - SME' in order to get all the values of 'Par' containing the string 'RTM - SME', I am also unable unable to write this set analysis expression correctly.

Help please.

Thanks

Labels (1)
1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

The variable can be used like this:

sum({$<Par={'$(Variable1)'}>}MLoc)

With the wildcard * it would look like this:

sum({$<Par={'*$(Variable1)'}>}MLoc)


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Sokkorn
Master
Master

Hi,

Do this

sum({$<Par={$(=Variable1)}>}MLoc)

Regards,

Sokkorn

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

The variable can be used like this:

sum({$<Par={'$(Variable1)'}>}MLoc)

With the wildcard * it would look like this:

sum({$<Par={'*$(Variable1)'}>}MLoc)


talk is cheap, supply exceeds demand