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

Announcements
We are aware of an issue with the Product Downloads page and looking into it.
cancel
Showing results for 
Search instead for 
Did you mean: 
upaliwije
Creator II
Creator II

Varibale

Hi

I have created a variable as follows

V3month=(PAID_MONTH='May,Jun,Jul')

and use it in a set expression in the following way

SUM({<$(V3month)>}CRE_PAID_AMOUNT)/3

But I do not get the results . Have i made any errors in creating variable or expression. Pls help

Labels (1)
1 Solution

Accepted Solutions
marcus_sommer
MVP
MVP

The syntax-interpreter tried to interpret it as expression but it's only an expression-part therefore you could ignore the red underlines.

- Marcus

View solution in original post

6 Replies
marcus_sommer
MVP
MVP

Try:

set V3month = "PAID_MONTH = {'May','Jun','Jul'}";

- Marcus

upaliwije
Creator II
Creator II
Author

Thanks

Where should I place your script ? when I put it in data variable overview It does not work

marcus_sommer
MVP
MVP

This would be within the load-script - by defining it within the variable-editor you write:

PAID_MONTH = {'May','Jun','Jul'}

- Marcus

upaliwije
Creator II
Creator II
Author

Tks

However when I put it in Variable over view it is not working

this part gets underlined in red {'May','Jun','Jul'}

What could be reason please

marcus_sommer
MVP
MVP

The syntax-interpreter tried to interpret it as expression but it's only an expression-part therefore you could ignore the red underlines.

- Marcus

upaliwije
Creator II
Creator II
Author

Thanks for you expalnation