Hi,
I've not been able to find an answer that quite gives me what I'm looking for, but I'm sure thats me asking the search funtion the wrong question!
I'm trying to calculate the number of tickets open on the 1st of a month in a helpdesk system then trend this over 6 months in a graph.
So to identify what's open on the first of the month I've got the following formula;
IF {%Submit Date} < DateAdd('m',-1,Date(Year(CurrentDate),Month(DateAdd('m',0,CurrentDate)),1)) AND
{%Last Resolved Date} > DateAdd('m',-1,Date(Year(CurrentDate),Month(DateAdd('m',0,CurrentDate)),1)) THEN 1
I've replicated this 5 times and modified accordingly to give me the volumes for the 6 months.
Now I need to create a formula/method that will give me the first of the month that I can then drop into a graph and come up with a way of adding the 6 formulas to the graph so they plot in one line showing a trend over the 6 months.
I do have a table with just dates in and have used this in the past for "dummy" dates were dates are missing and I wanted to show a zero value instead of a missing one, but I'm having a mental block on how I'd link that table in given the date doesn't actually exisit in my main table given its what was open on this date, not opened, if that makes sense. So if I ran the report today the graph would show 1st June, 1st May, 1st April, 1st March, 1st February, 1st January.
Another thought is could I add a Union and code in there a rolling 6 months, but thats not something I've done before so wasn't sure if it would work or was the best way.
I'm using Crystal 2008, reporting off a SQL Server database, but can't do anything on the database side.
Any ideas would be most welcome.
Cheers
Marc
I've not been able to find an answer that quite gives me what I'm looking for, but I'm sure thats me asking the search funtion the wrong question!
I'm trying to calculate the number of tickets open on the 1st of a month in a helpdesk system then trend this over 6 months in a graph.
So to identify what's open on the first of the month I've got the following formula;
IF {%Submit Date} < DateAdd('m',-1,Date(Year(CurrentDate),Month(DateAdd('m',0,CurrentDate)),1)) AND
{%Last Resolved Date} > DateAdd('m',-1,Date(Year(CurrentDate),Month(DateAdd('m',0,CurrentDate)),1)) THEN 1
I've replicated this 5 times and modified accordingly to give me the volumes for the 6 months.
Now I need to create a formula/method that will give me the first of the month that I can then drop into a graph and come up with a way of adding the 6 formulas to the graph so they plot in one line showing a trend over the 6 months.
I do have a table with just dates in and have used this in the past for "dummy" dates were dates are missing and I wanted to show a zero value instead of a missing one, but I'm having a mental block on how I'd link that table in given the date doesn't actually exisit in my main table given its what was open on this date, not opened, if that makes sense. So if I ran the report today the graph would show 1st June, 1st May, 1st April, 1st March, 1st February, 1st January.
Another thought is could I add a Union and code in there a rolling 6 months, but thats not something I've done before so wasn't sure if it would work or was the best way.
I'm using Crystal 2008, reporting off a SQL Server database, but can't do anything on the database side.
Any ideas would be most welcome.
Cheers
Marc