<?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: How to store the total in the repeating table itself?</title><link>https://www.infopathdev.com:443/forums/thread/54648.aspx</link><pubDate>Sat, 08 May 2010 12:25:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54648</guid><dc:creator>haskbask</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54648.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=54648</wfw:commentRss><description>Thanks you, it is working fine. But I changed the sum formula from sum(column2) to sum(../preceding-sibling::column2) + ../column2.</description></item><item><title>Re: How to store the total in the repeating table itself?</title><link>https://www.infopathdev.com:443/forums/thread/54560.aspx</link><pubDate>Wed, 05 May 2010 20:10:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54560</guid><dc:creator>Mohamed Derhalli</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54560.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=54560</wfw:commentRss><description>&lt;p&gt;OK here is the solution, i&amp;#39;ll give you the way and you apply it to your form.&lt;/p&gt;
&lt;p&gt;Suppose you have 2 columns in your repeating table, column1 which is your goal to sum, and column2, you want to sum column2 and put the sum value below column2 but in the same repeating table, which means that you will have 2 fields in the same column, Drag a field and put it below column2 and double click it, and make its default value : sum(column2). &lt;/p&gt;
&lt;p&gt;Drag another field call it COUNT and put it outside the repeating table, double click it and give it a default value = count(repeating-table). so it counts number of rows for repeating table.&lt;/p&gt;
&lt;p&gt;Double click column1 (for testing only, this will be hidden) and put this formula as default value : &lt;/p&gt;
&lt;p&gt;count(../preceding-sibling::my:REPEATINGtable) + 1&lt;/p&gt;
&lt;p&gt;&amp;nbsp;NOTE : only REPEATINGtable needs to be changed here, you have to write the name of your repeating table by yourself, don&amp;#39;t look it up from the data source. &lt;/p&gt;
&lt;p&gt;now column1 will store the number of the row it&amp;#39;s in. &lt;/p&gt;
&lt;p&gt;so&amp;nbsp;for the sum field, double click it,&amp;nbsp;click conditional formatting, make it : if column1 NOT equal COUNT then hide this control. &lt;/p&gt;
&lt;p&gt;it will work this way. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>How to store the total in the repeating table itself?</title><link>https://www.infopathdev.com:443/forums/thread/54419.aspx</link><pubDate>Sun, 02 May 2010 05:35:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54419</guid><dc:creator>haskbask</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54419.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=54419</wfw:commentRss><description>&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;I added a footer and used calculated fields and Sum() function to display the total. But I want to store it in the last row of the under laying xml data of the same table.&lt;/span&gt;</description></item></channel></rss>