Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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.