<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Need help with assigning numbers based on percentages</title><link>https://www.infopathdev.com:443/forums/thread/50694.aspx</link><pubDate>Mon, 18 Jan 2010 14:54:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50694</guid><dc:creator>JoeInFL</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50694.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=50694</wfw:commentRss><description>&lt;p&gt;You&amp;#39;re absolutely correct, I copied yours and it worked perfectly. I must have had the Rules logic wrong. The negative numbers were confusing me, possibly. As you can see, I&amp;#39;m not terribly &amp;quot;math-y&amp;quot; either!&lt;/p&gt;
&lt;p&gt;Thanks a lot, you saved me much frustration!&lt;/p&gt;</description></item><item><title>Re: Need help with assigning numbers based on percentages</title><link>https://www.infopathdev.com:443/forums/thread/50676.aspx</link><pubDate>Sun, 17 Jan 2010 23:33:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50676</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50676.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=50676</wfw:commentRss><description>&lt;p&gt;I don&amp;#39;t believe you are running into an InfoPath limitation. I put together a quick sample based on my interpretation of what you are trying to do -- it seemed to work correctly to me (then again, I&amp;#39;m not terribly &amp;#39;math-y&amp;#39;, so I may be imagining that). Right click the link in the header of this post and use Save As to save the xsn locally. Then right click and select Design to open in design mode so you can preview.&lt;/p&gt;</description></item><item><title>Need help with assigning numbers based on percentages</title><link>https://www.infopathdev.com:443/forums/thread/50660.aspx</link><pubDate>Fri, 15 Jan 2010 20:48:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50660</guid><dc:creator>JoeInFL</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50660.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=50660</wfw:commentRss><description>&lt;p&gt;I have a form with fields named &amp;quot;Sales Plan&amp;quot; and &amp;quot;Sales Actual&amp;quot;. The user enters the Sales Plan figures, as well as the actual figures for the past&amp;nbsp;month. I use the following&amp;nbsp;to get the percentage of the difference between the two. This can be a positive, or a negative number. I use the following to get the result in the &amp;quot;Value&amp;quot; field of another text box named &amp;quot;Plan_Calc&amp;quot;:&lt;br /&gt;((Sales_Plan - Sales_Actual) / Sales_Plan)&lt;/p&gt;
&lt;p&gt;This seems to work fine, and the number returned seems to make sense.I have yet another text box that I need to display a score in, named &amp;quot;Plan_Score&amp;quot;, depending on this percentage. I&amp;#39;ve tried setting up Rules, such as &amp;quot;If Plan_Calc is less than 0, Score = 1&amp;quot; and &amp;quot;If Plan_Calc is greater than 0, Score = 2&amp;quot;. This works fine.&lt;/p&gt;
&lt;p&gt;The problem is when I try to apply my actual formula, it doesn&amp;#39;t seem to work. Here&amp;#39;s what I&amp;#39;d like to happen:&lt;/p&gt;
&lt;p&gt;If the result is&amp;nbsp;greater than/equal +4%, put a 4 in the &amp;quot;Plan_Score&amp;quot; text&amp;nbsp;box.&lt;/p&gt;
&lt;p&gt;If the result is 1% to +4% over Plan, put a&amp;nbsp;3 in the &amp;quot;Plan_Score&amp;quot; text&amp;nbsp;box.&lt;/p&gt;
&lt;p&gt;If the result is -1% to Plan, put a&amp;nbsp;2 in the &amp;quot;Plan_Score&amp;quot; text&amp;nbsp;box.&lt;/p&gt;
&lt;p&gt;If the result is less than -1%, put a 1 in the &amp;quot;Plan_Score&amp;quot; text&amp;nbsp;box.&lt;/p&gt;
&lt;p&gt;Anytime I add a third Rule, it either just displays the same number (i.e.; 4) no matter what&amp;#39;s entered, or it&amp;nbsp;diplays nothing at all. I&amp;#39;ve tried every combination of &amp;quot;If greater than this number, but less than another number&amp;quot; I can think of. Does InfoPath limit Rules from doing this kind of calculation?&lt;/p&gt;
&lt;p&gt;Any ideas, or am I going about this all wrong??&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>