<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: repeating table calculations (2ndary data source)</title><link>https://www.infopathdev.com:443/forums/thread/14488.aspx</link><pubDate>Tue, 18 Apr 2006 06:05:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14488</guid><dc:creator>Abhishek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14488.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14488</wfw:commentRss><description>Hi Marien,&lt;br /&gt;&lt;br /&gt;So u have a repeating Section say "RS" and a repeating Table say "RT".&lt;br /&gt;&lt;br /&gt;Ur repeating Table RT contains the fields Category and Amount.&lt;br /&gt;&lt;br /&gt;Ur repeating section RS should contain the 3 fields say TotalA, TotalB, TotalC.For these 3 fields,set the default value formula as I specified above.&lt;br /&gt;Eg:For TotalA the formula is sum(Amount[Category= "a"])&lt;br /&gt;&lt;br /&gt;Keep another 3 fields outside the repeating section say GrandTotalA,GrandTotalB,GrandTotalC.&lt;br /&gt;&lt;br /&gt;Now GrandTotalA should have its default value set to..   sum(totalA).Similarly for GrandTotalB and GrandTotalC.&lt;br /&gt;&lt;br /&gt;So GrandTotalA will have the sum of all the amount whose category is A.&lt;br /&gt;&lt;br /&gt;regards,&lt;br /&gt;Abhishek&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: repeating table calculations (2ndary data source)</title><link>https://www.infopathdev.com:443/forums/thread/14487.aspx</link><pubDate>Mon, 17 Apr 2006 15:41:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14487</guid><dc:creator>Mairen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14487.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14487</wfw:commentRss><description>Now I am trying this with a more complicated datasource.  In this one there are nested repeating sections.  For example there is a repeating section with start and end dates.  This repeating section contains a repeating table.&lt;br /&gt;&lt;br /&gt;The repeating table contains the information I described above, a category and an amount.  Now, if I want to total the amounts with a certain category, how would I go about doing this?</description></item><item><title>Re: repeating table calculations (2ndary data source)</title><link>https://www.infopathdev.com:443/forums/thread/14486.aspx</link><pubDate>Mon, 17 Apr 2006 14:59:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14486</guid><dc:creator>Mairen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14486.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14486</wfw:commentRss><description>This seems to work just fine.  Thank you for your help.</description></item><item><title>Re: repeating table calculations (2ndary data source)</title><link>https://www.infopathdev.com:443/forums/thread/14485.aspx</link><pubDate>Mon, 17 Apr 2006 14:14:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14485</guid><dc:creator>Abhishek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14485.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14485</wfw:commentRss><description>Hi Mairen,&lt;br /&gt;U can accomplish this without using code.&lt;br /&gt;&lt;br /&gt;Assume that u have 3 total fields namely TotalA,TotalB,TotalC.&lt;br /&gt;Also assume that ur repeating section fields are "Category" and "Amount".&lt;br /&gt;&lt;br /&gt;1)Double click on the TotalA text box.&lt;br /&gt;In the dialog that opens,there is a default value textbox.Beside that there is button(fx).&lt;br /&gt;Click that.&lt;br /&gt;&lt;br /&gt;2)In the "Insert Formula" dialog that opens,click the "Insert Function" button and select "Sum"&lt;br /&gt;Now select the Amount field such that ur formula looks as follows.&lt;br /&gt;sum(Amount).&lt;br /&gt;&lt;br /&gt;3)Also while selecting the Amount field, go to the filter and specify "Category = a".Now ur formula will look as sum(Amount[Category= "a"])&lt;br /&gt;&lt;br /&gt;4)Repeat the same for the TotalB,TotalC fields.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Abhishek</description></item><item><title>repeating table calculations (2ndary data source)</title><link>https://www.infopathdev.com:443/forums/thread/12843.aspx</link><pubDate>Mon, 17 Apr 2006 13:39:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12843</guid><dc:creator>Mairen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12843.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12843</wfw:commentRss><description>My form contains a repeating table that is populated from a secondary data source.  The table contains two columns a "category" column and an "amount" column.  &lt;br /&gt;&lt;br /&gt;There are three possible values that could be in the category column of each row, and I have three "total" fields in another part of the form. &lt;br /&gt;&lt;br /&gt;The idea is that one total will have the sums of all amounts that have a category of "a" , the second the sum of all amounts with category "b" the third with all amounts of catergory "c".&lt;br /&gt;&lt;br /&gt;I tried implementing this with a Rule on the amount field that would add it's own value to "totalfielda" if its category = a.  This doesn't seem to work.  Since the user doesn't input the values in the reapeating table, the Rule never gets invoked.&lt;br /&gt;&lt;br /&gt;Is there a way to do this without coding?  And if not, how can I access each amount and category field in the reapeating table to perform the calculation for another field?</description></item></channel></rss>