<?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: Calculating Totals</title><link>https://www.infopathdev.com:443/forums/thread/8845.aspx</link><pubDate>Wed, 18 Jan 2006 17:46:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8845</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8845.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8845</wfw:commentRss><description>The reason you are getting the Node Test Expected error is because you need to specify which v1 you are trying to reference.  Since the table is repeating you have several v2s (hence the sum(v2)) and several v1s.  If the expression box is inside the repeating table row you should be able to use the function button on the expression box and Insert Field or Group to get this to work.  &lt;br /&gt;&lt;br /&gt;If the expression box is not in the repeating table you will need to use XPath with a node test to determine which v1 you are trying to subtract from.  The XPath might look something like this:&lt;br /&gt;&lt;br /&gt;/my:myFields/my:group1/my:group2[my:v1 = 4]/my:v1&lt;br /&gt;&lt;br /&gt;To edit the XPath manually in the expression box be sure to check the box labeled "Edit XPath".&lt;br /&gt;&lt;br /&gt;I hope this helps, let us know if you have any more problems!&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;InfoPath Dev Texas&lt;br /&gt;</description></item><item><title>Calculating Totals</title><link>https://www.infopathdev.com:443/forums/thread/5282.aspx</link><pubDate>Wed, 18 Jan 2006 17:30:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5282</guid><dc:creator>Flurry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5282.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5282</wfw:commentRss><description>Hi Guys&lt;br /&gt;&lt;br /&gt;I have two tables. The master table has a value. Let's call it v1. The detail table has a value called v2. What I want is to display v1 - sum(v2) on an infopath form. What I have done is created an expression box to sum v2. However, there seems to be no way of referenceing this result in another expression box.&lt;br /&gt;&lt;br /&gt;When I try the obvious of v1-sum(v2) in the expression box I get the following error.."Node Test Expected"&lt;br /&gt;&lt;br /&gt;Is there anyway of doing this?</description></item></channel></rss>