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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Between dates set analysis with variables

what is the right syntax for the following:

sum({<Date= {"<=$(=vYesterday))>=$(=vLastWeek)"}> } Sales)

for some reason it doesn't work..

(vYesterday and vLastWeek are variables)

1 Solution

Accepted Solutions
MayilVahanan

HI

Try like this

sum({<Date= {'<=$(=vYesterday) >=$(=vLastWeek)'}> } Sales)


Did u check both are in same format?

hope it helps.


Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

2 Replies
Not applicable
Author

Try this:

sum({<Date= {"<=$(=vYesterday)"}, Date = {">=$(=vLastWeek)"}> } Sales)

MayilVahanan

HI

Try like this

sum({<Date= {'<=$(=vYesterday) >=$(=vLastWeek)'}> } Sales)


Did u check both are in same format?

hope it helps.


Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.