<?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: Preceding Sibling</title><link>https://www.infopathdev.com:443/forums/thread/97082.aspx</link><pubDate>Mon, 21 Apr 2014 15:27:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97082</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97082.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=97082</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;You need to put the &lt;strong&gt;[1]&lt;/strong&gt; on the preceding-sibling portion, not on the end:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;../preceding-sibling::my:Main[1]/my:AmountCertifiedForPayment&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;The reason you were getting the first value instead of the one you wanted is a little tricky to explain, but putting a [1] after &lt;strong&gt;my:AccountCertifiedForPayment&lt;/strong&gt; is definitely wrong, because it equates to &amp;quot;take the first &lt;strong&gt;my:AccountCertifiedForPayment&lt;/strong&gt;&amp;nbsp;under its respective parent&amp;quot; (and I assume each &lt;strong&gt;my:Main&lt;/strong&gt; only has one &lt;strong&gt;my:AccountCertifiedForPayment&lt;/strong&gt;&amp;nbsp;each).&lt;/p&gt;</description></item><item><title>Preceding Sibling</title><link>https://www.infopathdev.com:443/forums/thread/97045.aspx</link><pubDate>Thu, 17 Apr 2014 11:34:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97045</guid><dc:creator>Shannan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97045.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=97045</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I have an&amp;nbsp;InfoPath form with a repeating&amp;nbsp;table and I am using the preceding sibling as one of the formulas.&amp;nbsp;When a new row is inserted I want this formula to use the current amount and take it away from the previous amount above it, however the formula only takes away the first amount (first row in the table). &lt;/p&gt;&lt;p&gt;This is the formula I am using=&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;. - ../preceding-sibling::my:Main/my:AmountCertifiedForPayment[1]&lt;/p&gt;&lt;p&gt;I thought that by inserting the [1] it would use the&amp;nbsp;previous amount.&lt;/p&gt;&lt;p&gt;Have you any suggestions on how to&amp;nbsp;achieve this? &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>