<?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: Summing up of multiple drop-down values</title><link>https://www.infopathdev.com:443/forums/thread/82967.aspx</link><pubDate>Mon, 24 Sep 2012 23:44:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:82967</guid><dc:creator>adrianodl</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/82967.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=82967</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Gennady,&lt;/p&gt;&lt;p&gt;That&amp;#39;s right, the field does not support multiple parameters. I actually got it working by doing the simplest thing: field1 + field2 + field3...&lt;/p&gt;&lt;p&gt;Easy!&lt;/p&gt;&lt;p&gt;Thanks for your help,&lt;/p&gt;&lt;p&gt;Adriano &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Summing up of multiple drop-down values</title><link>https://www.infopathdev.com:443/forums/thread/82864.aspx</link><pubDate>Thu, 20 Sep 2012 06:53:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:82864</guid><dc:creator>Gennady Vanin (Геннадий Ванин, Новосибирск)</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/82864.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=82864</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;adrianodl:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;the sum(field1, field2, field3)&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The&amp;nbsp; description of a sum() function (when inserting it) tells that it has &lt;b&gt;no more than one argument&lt;/b&gt; :&lt;/p&gt;&lt;ul&gt;&lt;li&gt;sum(field)&lt;br /&gt;Returns the sum of all fields in a field or group.&lt;br /&gt;Each field is first converted tto a number value&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;It would have been strange to have a function that would have required to write many (compare &lt;b&gt;sum(f1, f2)&lt;/b&gt; with &lt;b&gt;f1+f2&lt;/b&gt; BLOCKED EXPRESSION&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Though I failed to get any sane results after applying it to group &lt;b&gt;of Dropdown List Boxes&lt;/b&gt; as sum(Group), where Group contains &lt;b&gt;whole number(integer)&lt;/b&gt; types of fields, either, having gotten as a result &lt;b&gt;NaN&lt;/b&gt; which is weird.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;If you still want to sum the values of &lt;b&gt;of Dropdown List Boxes &lt;/b&gt;use &lt;b&gt;field1+field2+field3&lt;/b&gt;, having changed &lt;b&gt;&amp;quot;Data type:&amp;quot;&lt;/b&gt; of all fields (including the one to which you insert the result) is &lt;b&gt;&amp;quot;Whole Number (Integer)&amp;quot;&lt;/b&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Summing up of multiple drop-down values</title><link>https://www.infopathdev.com:443/forums/thread/82862.aspx</link><pubDate>Thu, 20 Sep 2012 02:32:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:82862</guid><dc:creator>adrianodl</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/82862.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=82862</wfw:commentRss><description>&lt;p&gt;Hi all, this is what I&amp;#39;m trying to achieve:&lt;/p&gt;
&lt;p&gt;I have a risk assessment form with determined values assigned to specific yes/no questions, with yes&amp;nbsp;= 1 and no = 0.&lt;/p&gt;
&lt;p&gt;What I want to do is to sum up the values of these multiple drop down boxes and then populate a text box with the result; so for example, if 3 out of 5 answers are yes, the risk is medium. If 5 of 5, it&amp;#39;s high, and so on.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I know how to create the rules based on a a value, but I&amp;#39;m struggling with summing up the different values. I tried to use the sum(field1, field2, field3) function but it tells me the syntax is not right.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any clues?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;</description></item></channel></rss>