Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formula to Count some object and display it by months for a year

Status
Not open for further replies.

maolsen

IS-IT--Management
Jul 10, 2008
8
US
I am trying to create a formula that can count helpdesk tickets and display them in a chart by month for a whole year.
 
You need to explain what you have tried and what problem you are encountering. It would help if you let us know what fields you are working with.

-LB
 
I am getting months to figure out based on todays date but My months are off. For example July 10 to June 10 is one month but tomorrow my month will be July 11 to June 11.

first formula
(({HelpDesk.Status} = 5 or{HelpDesk.Status} = 4) and
({@H_ConvertResolvedtoDate} >= DateAdd('m',-12,CurrentDate) and
{@H_ConvertResolvedtoDate} < CurrentDate))

Time formula

(DateTime(1970,1,1,0,0,0) + ({HelpDesk.Resolved_Time})/86400)

We are working in Remedy so we have to purform the Unix conversion.
 
Why are you using today's date to determine a month instead of using actual months? What do you mean by your months are "off"? You need to provide more detail and explanation.

-LB
 
My months are off as they do not go June first to June 30 or May 1 to May 31. My Months go from what ever day is today to the corresponding day the previous month and sets that as current month. As far as your question about actual months. How do I determine actual months that will fix my whole issue.
 
Using the advanced chart option, you just need to add your date field as the "on change of" field in the chart and then click on "Order" and select "print on change of month".

-LB
 
The problem with performing that is that all of my dates are in UNIX time which which is all the seconds sinc January 1, 1970. Unless I am missing something?
 
I thought you had converted it to a date field in your formula {@H_ConvertResolvedtoDate}. I meant for you to use that in the chart.

-LB
 
How do I print on change of month. I am not seeing that as an option.

 
Add the date formula to the "on change of" area and while it is highlighted, click on "order"--then you will see the option to print on change of month--assuming that your conversion resulted in a date or datetime datatype.

-LB
 
I fixed it. My date conversion was working but my qualification on what I was trying to gather the information on was wrong.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top