Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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)
Just add <= before de dollar sign expansion:
sum({< vo_date_due ={'<=$(#=vCompareDate)'}>} vo_amt_net)
Hi,
try with this
sum({< vo_date_due ={'$(vCompareDate)'}>} vo_amt_net)
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.
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.
You can use the # sign to force the variable to be evaluated as a number:
sum({< vo_date_due ={'$(#=vCompareDate)'}>} vo_amt_net)
That worked! Thanks!
Now what is the syntax to change this to <= instead of just =?
Just add <= before de dollar sign expansion:
sum({< vo_date_due ={'<=$(#=vCompareDate)'}>} vo_amt_net)
That worked! Thanks!