This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
It's the most wonderful time of the year - Santalytics 2020 is here! This year, Santa's workshop needs the help of the Alteryx Community to help get back on track, so head over to the Group Hub for all the info to get started!
I believe the issue is with the parameter you are using for DateTimeToday - that is an Alteryx function, not a SQL function. Try something like GETDATE(), which will return the current datetime (i.e. '2017-10-09 08:03:25')... or CONVERT(date,GETDATE()) should give you today's date formatted just as '2017-10-09' without the timestamp, if that's how the field you're filtering on is formatted...
And then if you wanted to select for the last few days, you can use the DATEADD function in SQL to subtract a few days from your desired start date for pulling data.