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

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

Set Analysis Date Variable

I'm trying to compare vo_date_due to vCompareDate.  vCompareDate is a variable that is already in date format.  vo_date_due is in Qlikview date format.  There is a red line under the second bracket {.  Any Ideas?

sum({< date(vo_date_due) = {'$(vCompareDate)'}>} vo_amt_net)

1 Solution

Accepted Solutions
Not applicable
Author

Just add <= before de dollar sign expansion:

sum({< vo_date_due ={'<=$(#=vCompareDate)'}>} vo_amt_net)

View solution in original post

8 Replies
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

try with this

sum({< vo_date_due ={'$(vCompareDate)'}>} vo_amt_net)

Anonymous
Not applicable
Author

I have tried this but get 0 results.  I believe it is because vo_date_due is in number format and vCompareDate is in date format.

Anonymous
Not applicable
Author

I have tried this but get 0 results.  I believe it is because vo_date_due is in number format and vCompareDate is in date format.

Not applicable
Author

You can use the # sign to force the variable to be evaluated as a number:

sum({< vo_date_due ={'$(#=vCompareDate)'}>} vo_amt_net)

Anonymous
Not applicable
Author

That worked! Thanks!

Anonymous
Not applicable
Author

Now what is the syntax to change this to <= instead of just =?

Not applicable
Author

Just add <= before de dollar sign expansion:

sum({< vo_date_due ={'<=$(#=vCompareDate)'}>} vo_amt_net)

Anonymous
Not applicable
Author

That worked! Thanks!