active and set value to current date and time

You shouldn’t have to, the actual query has LAST_QUARTER in it, so the data coming back will be filtered by the last quarter.