<?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: Calculation based on field if not blank</title><link>https://www.infopathdev.com:443/forums/thread/80418.aspx</link><pubDate>Tue, 10 Jul 2012 20:48:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:80418</guid><dc:creator>Jen B</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/80418.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=80418</wfw:commentRss><description>&lt;p&gt;Thank you Hilary!&amp;nbsp; That worked out perfectly and was much simpler than I was expecting!&lt;/p&gt;</description></item><item><title>Re: Calculation based on field if not blank</title><link>https://www.infopathdev.com:443/forums/thread/80379.aspx</link><pubDate>Tue, 10 Jul 2012 00:09:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:80379</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/80379.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=80379</wfw:commentRss><description>&lt;p&gt;It is possible to create conditional default values - the formulas can be a bit complex, however.&lt;/p&gt;
&lt;p&gt;It would be simplest to just put the same two rules on all three fields involved:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Adjusted Estimated Design Hours&lt;/li&gt;
&lt;li&gt;Actual Design Hours&lt;/li&gt;
&lt;li&gt;Estimated Design Hours&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;The two rules would be:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Condition:&amp;nbsp;[Adjusted Estimated Design Hours] is blank - set % Completed to ([Actual Design Hours] / [Estimated Design Hours])*100&lt;/li&gt;
&lt;li&gt;Condition: [Adjusted Estimated Design Hours] is not&amp;nbsp;blank - set % Completed to ([Actual Design Hours] / [Adjusted Estimated Design Hours])*100&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Calculation based on field if not blank</title><link>https://www.infopathdev.com:443/forums/thread/80376.aspx</link><pubDate>Mon, 09 Jul 2012 21:13:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:80376</guid><dc:creator>Jen B</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/80376.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=80376</wfw:commentRss><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I wasn&amp;#39;t exactly sure how to title this one and, therefore, wasn&amp;#39;t sure how to search for what I&amp;#39;m looking to do.&amp;nbsp; The form I&amp;#39;m creating is also utilized for tracking progress of work.&amp;nbsp; A requirement I was given asks for a percentage calculation, however, which fields used to calculate that percentage depends on whether one of the three is blank or not.&amp;nbsp; The fields in play are: Estimated Design Hours, Adjusted Estimated Design Hours, Actual Design Hours &amp;amp; % Complete.&lt;/p&gt;
&lt;p&gt;The requirement comes out like this: &lt;/p&gt;
&lt;p&gt;If [Adjusted Estimated Design Hours] is blank, then % Complete = ([Actual Design Hours] / [Estimated Design Hours])*100, If [Adjusted Estimated Design Hours] is not blank, then % Complete = ([Actual Design Hours] / [Adjusted Estimated Design Hours])*100&lt;/p&gt;
&lt;p&gt;Essentially, % complete is calculated on actual design hours and estimated design hours unless the field for adjusted estimated design hours is not blank.&amp;nbsp; At that point, the calculation would use the adjusted estimated design hours rather than estimated design hours.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure how to apply rules to this without if/then statements.&amp;nbsp; I&amp;#39;m assuming it may require a boolean function of some sort, but I don&amp;#39;t really know where to start. &lt;/p&gt;
&lt;p&gt;I&amp;#39;m in IP 2010 and publishing to SP 2007.&lt;/p&gt;
&lt;p&gt;Thanks to anyone who can help out!&lt;/p&gt;</description></item></channel></rss>