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 with variables issue

Hi all,

This is the expression in by text box:

=sum({<month={$(vMaxMonth)}>}Revenue)&' '&sum({<month={$(vPrevMonth)}>}Revenue)

And this is the values of the variables:

Capture.JPG.jpg

this expression gives me empty result.

I tried this way:

=sum({<month={'$(vMaxMonth)'}>}Revenue)&' '&sum({<month={'$(vPrevMonth)'}>}Revenue)

this one shows me total sum without any filter.

when I try regular list box filter each date gives me different number.

where am I wrong?

Thanks,

Boris

10 Replies
preminqlik
Specialist II
Specialist II

seems to be you are complicating that by caculating in backend . you can caclulate it in front end also ...any way try this ...



sum(if(Month=$(vMaxMonth),Revenue))&' '&sum(if(Month=$(vPrevMonth),Revenue))