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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set analysis using variables

Hi All,

    I have a very minor issue.. I below setanalysis expression is not working.. can some one let me know that the error is?

=sum({< Year= { '$(vMaxyear')}>} Sales)

vMaxYear is the variable which has the value of Maximum year...

Thanks  in advance...

11 Replies
Not applicable
Author

Hai Lavanya,

I think there is a small error on the syntax. you have mentioned =sum({< Year= { '$(vMaxyear')}>} Sales)

instead you try =sum({< Year= { '$(vMaxyear)'}>} Sales). I was able to get results with this.

Not applicable
Author

Hi Lavanya,

Try this:

sum({< Year= { $(=vMaxyear)}>} Sales)

Regards,

Shyam