Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I would like to add a where clause to filter on a date variable in the Qliksense data load editor. However this results in an for the error. Can you please confirm the correct syntax? Is another function required?
For Redshift SQL code: where date >= Timestamp "2021-03-01 00:00:00"
Example
Load
a,b,c,date
SQL
Select a,b,c,date
from table
where year(date) >=2021
Hi, if the 'For Redshift SQL code' is the correct syntax you can use that syntax in the load editor:
Load
a,b,c,date
SQL
Select a,b,c,date
from table
where date >= Timestamp "2021-01-01 00:00:00";
In summary: the 'Load' part uses qlik syntax, the 'SQL' part uses datasource syntax.
You can use $() to insert dynamic values on SQL part like:
LET vThisYear = Year(Today());
Table:
Load
a,b,c,date
SQL
Select a,b,c,date
from table
where date >= Timestamp "$(vThisYear)-01-01 00:00:00";