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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
prees959
Creator II
Creator II

Variable Error

Hi,

 

I have been asked to look at a dashboard that has recently started throwing an error in a chart expression.

 

The expression is :

=sum({<$(vSum)>} [Total Cost])

 

Where vSum is :

[Order Date]={'>$(=addmonths(Max([Order Date]),-12,1))'},[Employee]-={'HarrisonEG'}

The Variable is throwing an error and I can't work out the correct way to express it.   I Basically want to sum Total Costs for the previous 12 months excluding a particular employee.   

Any help appreciated,

 

Phil

Labels (3)
3 Replies
rubenmarin
MVP
MVP

Hi Phil, usaully in set analysis single quotes are used to look for literal values, and double quotes for comparison, so try with:
[Order Date]={">$(=addmonths(Max([Order Date]),-12,1))"},[Employee]-={'HarrisonEG'}
prees959
Creator II
Creator II
Author

Hi,

Thanks for the reply.  I have altered the quotes as per your suggestion and im still getting an error in expression on....

 

rubenmarin
MVP
MVP

Hi, it works for me, PFA.

Note that syntax checker will say 'Errors in expression' but it still works.