<?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: Calculate totals of a Sharepoint List repeating table</title><link>https://www.infopathdev.com:443/forums/thread/90458.aspx</link><pubDate>Thu, 06 Jun 2013 12:30:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90458</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90458.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90458</wfw:commentRss><description>&lt;p&gt;Awesome!&lt;/p&gt;</description></item><item><title>Re: Calculate totals of a Sharepoint List repeating table</title><link>https://www.infopathdev.com:443/forums/thread/90451.aspx</link><pubDate>Thu, 06 Jun 2013 06:44:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90451</guid><dc:creator>Richter Belmont</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90451.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90451</wfw:commentRss><description>Thanks Ernesto i got it working now. :)

&lt;br /&gt;
&lt;br /&gt;

sum(xdXDocument:GetDOM(&amp;quot;Work Order System&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:Work_Order_System/@Labor_Hours_Total[msxsl:string-compare(../@Labor_Min_Date, xdXDocument:get-DOM()/my:myFields/my:SummaryReport/my:LR_StartDt) &amp;gt;= 0 and msxsl:string-compare(../@Labor_Min_Date, xdXDocument:get-DOM()/my:myFields/my:SummaryReport/my:LR_EndDt)</description></item><item><title>Re: Calculate totals of a Sharepoint List repeating table</title><link>https://www.infopathdev.com:443/forums/thread/90448.aspx</link><pubDate>Thu, 06 Jun 2013 05:47:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90448</guid><dc:creator>Richter Belmont</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90448.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90448</wfw:commentRss><description>Yes it works without condition during preview. i attached the screenshot. totals of all items were pulled, not the correct total because we dont have condition.

&lt;br /&gt;
&lt;b&gt;sum(xdXDocument:GetDOM(&amp;quot;Work Order System&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:Work_Order_System/@Labor_Hours_Total)&lt;/b&gt;</description></item><item><title>Re: Calculate totals of a Sharepoint List repeating table</title><link>https://www.infopathdev.com:443/forums/thread/90444.aspx</link><pubDate>Wed, 05 Jun 2013 18:56:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90444</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90444.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90444</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Have you tried summing without a condition?&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;sum(xdXDocument:GetDOM(&amp;quot;Work Order System&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:Work_Order_System/@Labor_Hours_Total)&lt;/em&gt;&lt;/strong&gt; &lt;/p&gt;&lt;p&gt;Does that work OK?&lt;/p&gt;&lt;p&gt;I guess I&amp;#39;m trying to figure out if the xpath is incorrect or if the condition is incorrect, or if there&amp;#39;s a problem in the data that prevents it from being summed.&lt;/p&gt;</description></item><item><title>Re: Calculate totals of a Sharepoint List repeating table</title><link>https://www.infopathdev.com:443/forums/thread/90430.aspx</link><pubDate>Wed, 05 Jun 2013 12:50:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90430</guid><dc:creator>Richter Belmont</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90430.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90430</wfw:commentRss><description>Thanks Ernesto, i tried both but still the output is zero, i think your sample is not applicable for data that is coming from a Sharepoint List.
&lt;br /&gt;
I tried this but still no luck
&lt;br /&gt;
sum(xdXDocument:GetDOM(&amp;quot;Work Order System&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:Work_Order_System[number(translate(translate(translate(@Labor_Min_Date,&amp;#39;-&amp;#39;,&amp;#39;&amp;#39;),&amp;#39; &amp;#39;,&amp;#39;&amp;#39;),&amp;#39;:&amp;#39;,&amp;#39;&amp;#39;)) &amp;gt; number(translate(translate(translate(/my:myFields/my:SummaryReport/my:LR_StartDt,&amp;#39;-&amp;#39;,&amp;#39;&amp;#39;),&amp;#39; &amp;#39;,&amp;#39;&amp;#39;),&amp;#39;:&amp;#39;,&amp;#39;&amp;#39;))]/@Labor_Hours_Total)</description></item><item><title>Re: Calculate totals of a Sharepoint List repeating table</title><link>https://www.infopathdev.com:443/forums/thread/90426.aspx</link><pubDate>Wed, 05 Jun 2013 12:17:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90426</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90426.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90426</wfw:commentRss><description>&lt;p&gt;I would suggest trying intermediate steps to slowly build your total sum. So if your goal is to fulfill two conditions in the sum, perhaps start off with&lt;/p&gt;&lt;p&gt;sum(xdXDocument:GetDOM(&amp;quot;Work Order System&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:Work_Order_System[condition #1]/@Labor_Hours_Total) &lt;/p&gt;&lt;p&gt;then try&lt;/p&gt;&lt;p&gt;sum(xdXDocument:GetDOM(&amp;quot;Work Order System&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:Work_Order_System[condition #2]/@Labor_Hours_Total) &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Once the two above work OK, it seems like you would just need to add one to the other.&lt;/p&gt;&lt;p&gt;Hope this helps!&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Calculate totals of a Sharepoint List repeating table</title><link>https://www.infopathdev.com:443/forums/thread/90401.aspx</link><pubDate>Tue, 04 Jun 2013 13:11:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90401</guid><dc:creator>Richter Belmont</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90401.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90401</wfw:commentRss><description>Thanks Ernesto for your reply,. but i can&amp;#39;t get the correct formula, can you help?

i tried using this formula below and im getting 0.0 value for Grand Total Hours, i am filtering the repeating table base on the dates, these two dates are outside of repeating table, Start Date and End Date, 
&lt;br /&gt;
sum(xdXDocument:GetDOM(&amp;quot;Work Order System&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:Work_Order_System[@Labor_Min_Date &amp;lt; /my:myFields/my:SummaryReport/my:LR_StartDt or @Labor_Min_Date &amp;gt; /my:myFields/my:SummaryReport/my:LR_EndDt]/@Labor_Hours_Total)
&lt;br /&gt;</description></item><item><title>Re: Calculate totals of a Sharepoint List repeating table</title><link>https://www.infopathdev.com:443/forums/thread/90395.aspx</link><pubDate>Tue, 04 Jun 2013 12:17:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90395</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90395.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90395</wfw:commentRss><description>&lt;p&gt;I believe your sum will need to use the same filter. For example, if you&amp;#39;re hiding rows where my:TotalHours &amp;gt; 0, your sum would look like this:&lt;/p&gt;&lt;p&gt;sum(my:row[my:TotalHours &amp;gt; 0]/:my:TotalAmount)&lt;/p&gt;&lt;p&gt;I&amp;#39;m attaching a quick sample that you can look at in Design and Preview. Hope this helps!&lt;/p&gt;</description></item><item><title>Calculate totals of a Sharepoint List repeating table</title><link>https://www.infopathdev.com:443/forums/thread/90393.aspx</link><pubDate>Tue, 04 Jun 2013 07:06:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90393</guid><dc:creator>Richter Belmont</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90393.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=90393</wfw:commentRss><description>Hi Guys - I was able to manage to show my sharepoint list using a repeating table that i seen in different blogs. My problem now is i can&amp;#39;t find a way to add a total column in the footer. Im filtering the sharepoint list data in my view by hiding the rows. I just want to calculate the totals of the rows that is not hidden. Any idea?</description></item></channel></rss>