<?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: Calculate fields in repeating table rows with condition</title><link>https://www.infopathdev.com:443/forums/thread/99897.aspx</link><pubDate>Mon, 03 Nov 2014 17:53:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99897</guid><dc:creator>rdoe777</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99897.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=99897</wfw:commentRss><description>&lt;p&gt;I think I was able to figure it out using method 2 in below post.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://blogs.msdn.com/b/infopath/archive/2006/11/27/conditional-default-values.aspx"&gt;http://blogs.msdn.com/b/infopath/archive/2006/11/27/conditional-default-values.aspx &lt;/a&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Calculate fields in repeating table rows with condition</title><link>https://www.infopathdev.com:443/forums/thread/99896.aspx</link><pubDate>Mon, 03 Nov 2014 17:38:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:99896</guid><dc:creator>rdoe777</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/99896.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=99896</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I&amp;#39;m trying to come up with an XPath formula to calculate fields as in below repeating table in a web based form. The first row value for Balance field, $2000, needs to be populated from outside of the repeating table, but all values for subsequent rows for Balance field need to equal to &amp;quot;previousRowBalance - previousRowAmount&amp;quot;, like the second row Balance value is $2000-$100=$1900.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Amount |&amp;nbsp; Balance&lt;/p&gt;&lt;p&gt;$100 &amp;nbsp; &amp;nbsp; |&amp;nbsp; &lt;b&gt;$2000&lt;/b&gt;&lt;/p&gt;&lt;p&gt;$150 &amp;nbsp; &amp;nbsp; |&amp;nbsp; $1900&lt;/p&gt;&lt;p&gt;$350 &amp;nbsp; &amp;nbsp; |&amp;nbsp; $1750&lt;br /&gt;&lt;/p&gt;&lt;p&gt; Does anyone know how to do this? Thanks.&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>