<?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>InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/142.aspx</link><description>Are you exploring new features coming up in 2010? Share information and ask questions here!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Handling Negative values in the Sum Function</title><link>https://www.infopathdev.com:443/forums/thread/78412.aspx</link><pubDate>Wed, 09 May 2012 17:06:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:78412</guid><dc:creator>IbisDev</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/78412.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=78412</wfw:commentRss><description>&lt;p&gt;Should have done this first. Created a test table and manually entered values. Sum function worked as expected. I did notice that the product of a negative multiplicaiton was shown as a - and not a () which is an accounting treatment. I changed the format of the results fields in the SharePoint list from currency to number which produces a - sign instead of () and this time the Sum function worked correctly. Interesting however that you can format the field as currency in InfoPath and it will show the () in the form column, but apparently it ignores that formatting in the calculation. So, my form looks correct from a format standpoint and I get the correct value. Thanks for taking the time to respond and help me work through this. Hope the information can be used by others.&lt;/p&gt;
&lt;p&gt;Bob&lt;/p&gt;</description></item><item><title>Re: Handling Negative values in the Sum Function</title><link>https://www.infopathdev.com:443/forums/thread/78406.aspx</link><pubDate>Wed, 09 May 2012 16:14:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:78406</guid><dc:creator>IbisDev</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/78406.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=78406</wfw:commentRss><description>&lt;p&gt;Thanks for the reply. The SharePoint List column I am totaling is a Text field formatted as Currency. Value in the field is actually created by a Workflow as text, because I ran into problems using a calculated field elsewhere. The actual value is the product of &amp;quot;Hours&amp;quot; X &amp;quot;Rate&amp;quot;. Because SharePoint lists do not produce a Subtotal that you can access and use anywhere I have a workflow that adds and accumulates to give me a subtotal. However, if a user entered a wrong amount and wants to go in and reduce the number of hours, I require them to make a negative entry which allows the workflow to adjust the subtotal and keep things orderly. (You can&amp;#39;t just edit the hours, because I use the existing Balance as the base to accumulate new entries to, so the original amount is already in the balance, they could just edit the balance, but I don&amp;#39;t want to lose the audiit trail). The resulting entry in SharePoint looks like Hours: -1 Rate: 200 Subtotal: (200). This is the same way it appears in the InfoPath Form Repeating Table. &lt;/p&gt;
&lt;p&gt;The filtered column would be 200+(200)+200 should equal 200, but the Sum functon comes up with 400. If were coming up with 600 I could imagine that it wasn&amp;#39;t recognizing the parantheses or that it is a negative value, but it just seems to ignore the value completely.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Hope this wasn&amp;#39;t too scattered or rambling. I agree it should be netting the values as expected.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Bob&lt;/p&gt;</description></item><item><title>Re: Handling Negative values in the Sum Function</title><link>https://www.infopathdev.com:443/forums/thread/78403.aspx</link><pubDate>Wed, 09 May 2012 15:41:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:78403</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/78403.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=78403</wfw:commentRss><description>The sum() function should certainly be taking negative values into account.&amp;nbsp; Has your experience been otherwise?&amp;nbsp; Perhaps you could to into specifics a bit more so that we might identify the issue?</description></item><item><title>Handling Negative values in the Sum Function</title><link>https://www.infopathdev.com:443/forums/thread/78394.aspx</link><pubDate>Wed, 09 May 2012 14:31:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:78394</guid><dc:creator>IbisDev</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/78394.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=78394</wfw:commentRss><description>&lt;p&gt;I am populating a Repeating Table from a SharePoint List. I want to use the Sum Function to total a column of numbers. The column can contain negative values. From what I can determine, the Sum Function totals the Positve values and ignores the Negative values. I am using a rule to filter the list and I apply the same rule to the Sum field. This works fine except for not coming up with the &amp;quot;net&amp;quot; total of the column. Is there a setting somewhere that will make the Sum Function in InfoPath behave the way it does in Excel? &lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Bob Blasingame&lt;/p&gt;</description></item></channel></rss>