<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Using "IF' and "OR" in a formula for a calculated field</title><link>https://www.infopathdev.com:443/forums/thread/101005.aspx</link><pubDate>Tue, 03 Feb 2015 21:49:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101005</guid><dc:creator>Aspo28</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101005.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=101005</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks Bre and snturner for leading me in the right direction.&amp;nbsp; I finally got this working with the use of Rules!&amp;nbsp; Works like a charm.&amp;nbsp; Part of my issue was that the fields were calculated fields - which don&amp;#39;t work with Rules as needed (I didn&amp;#39;t know that at first).&amp;nbsp; Converting these fields to Text type fields allowed me to add the right Rules to get it working as needed.&amp;nbsp; Thanks again!&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Using "IF' and "OR" in a formula for a calculated field</title><link>https://www.infopathdev.com:443/forums/thread/100931.aspx</link><pubDate>Wed, 28 Jan 2015 17:21:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100931</guid><dc:creator>snturner</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100931.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=100931</wfw:commentRss><description>&lt;p&gt;I beleive what Bre is refering to is a rule that would refigure the calculation when any of the other fields are changed. You want to make sure a rule is on each field that preforms the calculation so if a user needs to change one of the fields after the calculation has already been completed, it is recalculated.&lt;/p&gt;&lt;p&gt;&amp;nbsp;A button that does the calculation would also work but would only work if the user clicks it.&lt;/p&gt;</description></item><item><title>Re: Using "IF' and "OR" in a formula for a calculated field</title><link>https://www.infopathdev.com:443/forums/thread/100908.aspx</link><pubDate>Tue, 27 Jan 2015 13:25:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100908</guid><dc:creator>Aspo28</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100908.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=100908</wfw:commentRss><description>&lt;p&gt;Thank you Bre for your quick reply.&amp;nbsp; I apologize for the delay in responding.&amp;nbsp; I am still trying to work through this.&amp;nbsp; What kind of rule would I place on each field?&amp;nbsp; Thanks again!&lt;/p&gt;</description></item><item><title>Re: Using "IF' and "OR" in a formula for a calculated field</title><link>https://www.infopathdev.com:443/forums/thread/100854.aspx</link><pubDate>Fri, 23 Jan 2015 21:54:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100854</guid><dc:creator>Bre Huston</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100854.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=100854</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello Aspo28,&lt;/p&gt;&lt;p&gt;Thanks for your question. Formulas can be tricky in InfoPath but&amp;nbsp;once you get the hang of it you&amp;#39;ll be on your way! In this instance you would want a rule copied to each field tat is changed or a button to calculate the value. The reason being is that conditions cannot be applied to a default value.&lt;/p&gt;&lt;p&gt;The first part&amp;nbsp;would be part of the condition for your action rule. Then you would want this formula to fire to calculate for != to CUR1 or CUR 2 to get the normal value. On the second part bould be a formula similar to this:&lt;/p&gt;&lt;p&gt;substring-before((field2*field3*field4), &amp;quot;.&amp;quot;)&amp;nbsp;&lt;/p&gt;&lt;p&gt;Hope that helps!&lt;/p&gt;&lt;p&gt;Bre&amp;nbsp;&lt;/p&gt;</description></item><item><title>Using "IF' and "OR" in a formula for a calculated field</title><link>https://www.infopathdev.com:443/forums/thread/100852.aspx</link><pubDate>Fri, 23 Jan 2015 19:59:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100852</guid><dc:creator>Aspo28</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100852.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=100852</wfw:commentRss><description>&lt;p&gt;I am&amp;nbsp;fairly new to InfoPath and&amp;nbsp;to this&amp;nbsp;forum so please forgive me if this has already been asked and answered.&amp;nbsp; &lt;/p&gt;&lt;p&gt;I am in need of some help as it pertains to formulas.&amp;nbsp; I have a dropdown field labeled &amp;quot;Currency&amp;quot;.&amp;nbsp; Users pick a currency (field1)&amp;nbsp;and&amp;nbsp;provide amount of shares of stock to buy (field2).&amp;nbsp; Field 3 is the stock price which is hardcoded in the form and field 4 is an exchange rate that the user provides.&amp;nbsp; I have a simple calculated field:&amp;nbsp; &lt;strong&gt;field2 * field3 * field4&lt;/strong&gt;.&amp;nbsp; This works fine.&amp;nbsp; No issues. &lt;/p&gt;&lt;p&gt;&amp;nbsp;However,&amp;nbsp;&amp;nbsp;I now need to take into consideration the selected currency.&amp;nbsp; Specifically, if a particular currency (only 2 out of the entire list) is selected, the calculation must round the answer to the nearest whole number.&amp;nbsp; In Excel, such a formula would look like this:&lt;/p&gt;&lt;p&gt;&amp;nbsp;=IF(OR(field1=&amp;quot;CUR1&amp;quot;,field1=&amp;quot;CUR2&amp;quot;),ROUND(field2*field3*field4),field2*field3*field4)&lt;/p&gt;&lt;p&gt;Unfortunately, I am really struggling&amp;nbsp;&amp;quot;translating&amp;quot; this into&amp;nbsp;the appropriate syntax InfoPath expects.&amp;nbsp; Any guidance would be GREATLY appreciated!&lt;/p&gt;&lt;p&gt;Thanks&amp;nbsp;in advance!&lt;/p&gt;</description></item></channel></rss>