<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Derive a Rating using Formulas</title>
	<atom:link href="http://sfdc.arrowpointe.com/2008/03/27/derive-a-rating-using-formulas/feed/" rel="self" type="application/rss+xml" />
	<link>http://sfdc.arrowpointe.com/2008/03/27/derive-a-rating-using-formulas/</link>
	<description>Authored by Scott Hemmeter of Arrowpointe Corp, this blog is written from the perspective of a Salesforce.com solution provider and contains information on Arrowpointe's AppExchange products as well as tips, findings, sample code, functionality wishes, etc.</description>
	<pubDate>Sun, 12 Oct 2008 01:31:27 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Scott Hemmeter</title>
		<link>http://sfdc.arrowpointe.com/2008/03/27/derive-a-rating-using-formulas/#comment-59417</link>
		<dc:creator>Scott Hemmeter</dc:creator>
		<pubDate>Fri, 28 Mar 2008 16:26:37 +0000</pubDate>
		<guid isPermaLink="false">http://sfdc.arrowpointe.com/2008/03/27/derive-a-rating-using-formulas/#comment-59417</guid>
		<description>@Paul:

That is brilliant!  I had no idea that ISPICKVAL wasn't needed in the CASE function.  That saves me lots of heartache and significantly reduces the risk of exceeding the formula size limit.  Thanks!</description>
		<content:encoded><![CDATA[<p>@Paul:</p>
<p>That is brilliant!  I had no idea that ISPICKVAL wasn&#8217;t needed in the CASE function.  That saves me lots of heartache and significantly reduces the risk of exceeding the formula size limit.  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://sfdc.arrowpointe.com/2008/03/27/derive-a-rating-using-formulas/#comment-59416</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Fri, 28 Mar 2008 16:15:23 +0000</pubDate>
		<guid isPermaLink="false">http://sfdc.arrowpointe.com/2008/03/27/derive-a-rating-using-formulas/#comment-59416</guid>
		<description>Great idea, although you'll have to make sure the data is updated or else something may move to hot even if the deal has stalled and nobody has gotten back to the rep.

As for the formula, Salesforce hasn't fixed ispickval for if() functions, but they have fixed it for the case() function (where it was really needed). So, if you want a much simpler version then you can do this:

Case( Status ,
"New","New",
"Contacted", IF( Days_to_Close__c &#60;= 60, "Warm", "Cold"),
"Interested", IF( Days_to_Close__c &#60;= 90, "Warm", "Cold"),
"Presentation", IF( Days_to_Close__c &#60;= 30, "Hot", IF( Days_to_Close__c &#60;= 90, "Warm", "Cold")),
"Sent I/O", IF( Days_to_Close__c &#60;=90, "Hot", "Warm"),
"Sold", "Won",
"Lost - No Contact", "Lost",
"Lost - No Budget", "Lost",
"Lost - Not Interested", "Lost",
"")</description>
		<content:encoded><![CDATA[<p>Great idea, although you&#8217;ll have to make sure the data is updated or else something may move to hot even if the deal has stalled and nobody has gotten back to the rep.</p>
<p>As for the formula, Salesforce hasn&#8217;t fixed ispickval for if() functions, but they have fixed it for the case() function (where it was really needed). So, if you want a much simpler version then you can do this:</p>
<p>Case( Status ,<br />
&#8220;New&#8221;,&#8221;New&#8221;,<br />
&#8220;Contacted&#8221;, IF( Days_to_Close__c &lt;= 60, &#8220;Warm&#8221;, &#8220;Cold&#8221;),<br />
&#8220;Interested&#8221;, IF( Days_to_Close__c &lt;= 90, &#8220;Warm&#8221;, &#8220;Cold&#8221;),<br />
&#8220;Presentation&#8221;, IF( Days_to_Close__c &lt;= 30, &#8220;Hot&#8221;, IF( Days_to_Close__c &lt;= 90, &#8220;Warm&#8221;, &#8220;Cold&#8221;)),<br />
&#8220;Sent I/O&#8221;, IF( Days_to_Close__c &lt;=90, &#8220;Hot&#8221;, &#8220;Warm&#8221;),<br />
&#8220;Sold&#8221;, &#8220;Won&#8221;,<br />
&#8220;Lost - No Contact&#8221;, &#8220;Lost&#8221;,<br />
&#8220;Lost - No Budget&#8221;, &#8220;Lost&#8221;,<br />
&#8220;Lost - Not Interested&#8221;, &#8220;Lost&#8221;,<br />
&#8220;&#8221;)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
