You need to sign in to do that
Don't have an account?

counting and calculating within date ranges
I'm trying to write a report to calculate activities that happen within a date range.
I have "stopdate" and "startdate" as fields on my Accounts object and I want to do math on those counts. Here's what I have so far:
last month: RowCount((MONTH(startdate) = (MONTH(TODAY())-1)) AND ISPICKVAL(Type ,"Full Customer"))
not last month: RowCount((MONTH(startdate) <> (MONTH(TODAY())-1)) AND ISPICKVAL(Type ,"Full Customer"))
Then I want to do a percentage of total calculation on this: "last month"/ ("last month" + "not last month")
Two problems.
1.) I get a syntax error b/c it says these fields don't exist. I'm copying the field names from the Fields list on the Accounts object, so I have no idea what it is expecting.
2.) Is my formula workable or am I barking up the wrong tree?
Thanks for any and all advice!
Amber
I have "stopdate" and "startdate" as fields on my Accounts object and I want to do math on those counts. Here's what I have so far:
last month: RowCount((MONTH(startdate) = (MONTH(TODAY())-1)) AND ISPICKVAL(Type ,"Full Customer"))
not last month: RowCount((MONTH(startdate) <> (MONTH(TODAY())-1)) AND ISPICKVAL(Type ,"Full Customer"))
Then I want to do a percentage of total calculation on this: "last month"/ ("last month" + "not last month")
Two problems.
1.) I get a syntax error b/c it says these fields don't exist. I'm copying the field names from the Fields list on the Accounts object, so I have no idea what it is expecting.
2.) Is my formula workable or am I barking up the wrong tree?
Thanks for any and all advice!
Amber
Do you have custom formula fields on the Account record for (Account)last month and (Account)notlast month that you are evaluating?
Message Edited by Stevemo on 01-19-2009 02:57 PM
:-)
Amber
(* maybe)
I think you can leverage the code in your report to build a formula field on your Account object.
Amber
Message Edited by Amber Neill on 01-19-2009 06:09 PM
Otherwise you may also be able to use the Account Field History to track the values in your Account.StartDate and Account.EndDate fields over time (but that's just a guess).