<?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: How to Calculate Balance</title><link>https://www.infopathdev.com:443/forums/thread/4120.aspx</link><pubDate>Sun, 25 Feb 2007 21:24:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4120</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4120.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4120</wfw:commentRss><description>Hi Kathie and welcome to our forum!&lt;br /&gt;The sum will calculate all entries at once. If you want a running balance, you'll have to use preceding-sibling as your opening balance and subtract the current line item. Search the forum (upper right) and site (upper left) for preceding-sibling() and current() to find references to how to use those xpath functinons. Good luck!&lt;br /&gt;</description></item><item><title>How to Calculate Balance</title><link>https://www.infopathdev.com:443/forums/thread/1873.aspx</link><pubDate>Fri, 23 Feb 2007 08:15:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1873</guid><dc:creator>KathieDamsel</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1873.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1873</wfw:commentRss><description>Hello, I am new to InfoPath and need some help badly!&lt;br /&gt;&lt;br /&gt;I would like to make a form consisting of a repeating table with 4 columns, namely: Description, Debit, Credit, and Balance. &lt;br /&gt;&lt;br /&gt;The table header should have “opening balance” appears under “description” column, and some fixed number appears under “debit” column.&lt;br /&gt;&lt;br /&gt;On the “balance” column, I#%92ve used ../../my:opening balance – sum(my:debit) + sum(my:credit) formula. However, I#%92ve been getting a wrong result for “balance”. See below for example.&lt;br /&gt;&lt;br /&gt;I want the following:&lt;br /&gt;Description		Debit		Credit		Balance	&lt;br /&gt;Opening Balance	        $100		$0		$100	 &lt;br /&gt;Books			$5		$0		$95&lt;br /&gt;Lunch			$8		$0		$87&lt;br /&gt;Weekly Allowance	$0		$50		$137					&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Unfortunately, what I#%92m getting is:&lt;br /&gt;Description	  	Debit		Credit		Balance	&lt;br /&gt;Opening Balance	        $100		$0		$100	&lt;br /&gt;Books			$5		$0		$95&lt;br /&gt;Lunch			$8		$0		$92&lt;br /&gt;Weekly Allowance	$0		$50		$150&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Any tips/advice is certainly appreciated. &lt;br /&gt;Thanks,&lt;br /&gt;Kathie&lt;br /&gt;</description></item></channel></rss>