Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
melistrkglu
Contributor II
Contributor II

Date variable doesn't work

Hello Qlik Users,

My question is related to an expression includes a variable doesn't work. 

I have a variable is vDate:   =AddMonths(max([Ship Date]),-2)

I have an expression: =sum({<[Order Date]={'>$(vDate)'}>} Sales)  

The result of expression just looks zero. I attached example qvf, excel files and screenshot in order to able to analyze it.

Thanks for your help.

King Regards,

Melis

Labels (3)
1 Solution

Accepted Solutions
tresesco
MVP
MVP

Replace single quotes with double quotes, like:

sum({<[Order Date]={">$(vDate)"}>} Sales) 

View solution in original post

1 Reply
tresesco
MVP
MVP

Replace single quotes with double quotes, like:

sum({<[Order Date]={">$(vDate)"}>} Sales)