I want to create a filter that retrieves last month's incidents
Summary:
Content (required):
I want that for example when I am in the current month, it shows me the previous month, because I want to schedule the report and I want it to be sent every month and that it is sent for example November 1, it sends all the incidents from October 1 to October 31.
I have expression but it throws an error.
"incidents.created BETWEEN date_format(add_months(sysdate, -1), 'YYYY-MM-DD')
AND date_format(sysdate, 'YYYY-MM-DD')"
Version (include the version you are using, if applicable):
Code Snippet (add any code snippets that support your topic, if applicable):
0