I devised a solution but it is more complex that I'd like:
- Have a checkbox on Case called "ActiveThisMonth" which is set using a scheduled job that runs daily. The scheduled job would set the checkbox based on if the Case is Active and was Created this month.
- Have a checkbox on Case called "ClosedThisMonth" which is set using a scheduled job that runs daily. The scheduled job would set the checkbox based on if the Case is Closed and was Created this month.
- The matrix report would be for cases from all time and create report formula fields for the Cases Closed This Month and the Cases Active This Month. Since I cannot add a filter of only Active cases, the Grand Total wouldn't be the correct numbers I wanted to display. I'd have to create a report formula field that counts the Active cases only, possibly using CASE.
Knowing the solution I thought of so far, is there something else I can do that won't require creating coding an Apex class, creating a scheduled job, and the checkbox fields on the Case object?
13 answers
For that I think you'd want to create a custom field, like a Formula(Checkbox) to exaluate the status and the created date, like this:
DATEVALUE(CreatedDate) < DATE(YEAR(TODAY()), MONTH(TODAY()), 01)
or maybe this
AND(
IsClosed = FALSE,
DATEVALUE(CreatedDate) < DATE(YEAR(TODAY()), MONTH(TODAY()), 01)
)