How can I filter by date using variable when loading data from database.
I want to get data from today going back to January 1st of two years ago. Essentially, I want to declare a variable to serve as today's date and then use a sql query to go back to January 1st of two years ago to get the data but not sure how to do this.