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

Error when using variables in set analysis ?

Hi,

I've decalred a variable in the frontend which picks up the current year

V_CurrentYear  which contains the formula max(year)

though in the text box when tested it gives me the correct value ..ie 2013

but when used in an expression ..doesn't give any value (gives 0 as value which is wrong)

 

 

sum({<REPORT_DATE=V_CurrentYear>}CD_count)

Could some one correct my mistake

~B

1 Solution

Accepted Solutions
Not applicable
Author

Try

sum({<REPORT_DATE={"$(V_CurrentYear)"}>}CD_count)

View solution in original post

3 Replies
Not applicable
Author

Try

sum({<REPORT_DATE={"$(V_CurrentYear)"}>}CD_count)

Not applicable
Author

Try:

sum({<REPORT_DATE={$(V_CurrentYear)}>}CD_count)

Anonymous
Not applicable
Author

Thank you Becca and Juan ..both the solutions work ..:)