<?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 create a Sumproduct or Sumif formula in Infopath 2010</title><link>https://www.infopathdev.com:443/forums/thread/101105.aspx</link><pubDate>Tue, 10 Feb 2015 06:17:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101105</guid><dc:creator>cbrown00</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101105.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=101105</wfw:commentRss><description>&lt;p&gt;Howdy Jimmy.&amp;nbsp; I&amp;#39;m trying to figure out how to do a Sumproduct xpath formula.&amp;nbsp; Hopefully my screenshot shows up below that shows the&amp;nbsp;schema.&amp;nbsp; The two items to be multiplied are outlined in red; they are in the same repeating group.&amp;nbsp; I can get one sumproduct, but not the subsequent ones from new instances of the repeating group.&amp;nbsp;&amp;nbsp; Is it possible to make this work?&lt;/p&gt;&lt;p&gt;I searched and found your post on how to post an image.&amp;nbsp; It says to use the Controls tab, but I don&amp;#39;t see a Controls tab.&amp;nbsp; I tried Insert/Edit image, but it isn&amp;#39;t recognizing my PNG image.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;img src="http://www.infopathdev.com/forums/C:\Users\chris.brown\Pictures\Schema1.jpg" alt="" /&gt;&lt;/p&gt;</description></item><item><title>Re: How to create a Sumproduct or Sumif formula in Infopath 2007</title><link>https://www.infopathdev.com:443/forums/thread/72320.aspx</link><pubDate>Wed, 23 Nov 2011 17:14:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72320</guid><dc:creator>mdasifkhaleel</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72320.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=72320</wfw:commentRss><description>Thanks alot, you are star..

It is working now. I have replace &amp;quot;@SP-FOL1&amp;quot; with &amp;quot;../@SP-FOL1&amp;quot;</description></item><item><title>Re: How to create a Sumproduct or Sumif formula in Infopath 2007</title><link>https://www.infopathdev.com:443/forums/thread/72299.aspx</link><pubDate>Wed, 23 Nov 2011 03:27:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72299</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72299.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=72299</wfw:commentRss><description>&lt;p&gt;Can you verify that all of the @SP-FOL1 fields have a numeric value?&amp;nbsp; If any of them are non-numeric, you will get NaN.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;EDIT:&amp;nbsp; Actually, there&amp;#39;s a problem with the part you have in quotes.&amp;nbsp; Since the context node is @SP-ProcessAreas, I think you need to have &lt;a href="mailto:../@SP-FOL1"&gt;../@SP-FOL1&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: How to create a Sumproduct or Sumif formula in Infopath 2007</title><link>https://www.infopathdev.com:443/forums/thread/72285.aspx</link><pubDate>Tue, 22 Nov 2011 17:45:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72285</guid><dc:creator>mdasifkhaleel</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72285.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=72285</wfw:commentRss><description>&lt;p&gt;Jim&lt;/p&gt;
&lt;p&gt;Hope you can help me.&lt;/p&gt;
&lt;p&gt;Formula:&lt;/p&gt;
&lt;p&gt;sum(xdMath:Eval(xdXDocument:GetDOM(&amp;quot;Full_Download&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:Full_Download/@SP-ProcessAreas[. = xdXDocument:get-DOM()/my:myFields/my:field2 and &lt;a href="mailto:../@_.Project_Status"&gt;../@_.Project_Status&lt;/a&gt; = xdXDocument:get-DOM()/my:myFields/my:field3 and &lt;a href="mailto:../@SP-SubProcess"&gt;../@SP-SubProcess&lt;/a&gt; = current()/../my:field9], &amp;quot;@SP-FOL1&amp;quot;))&lt;/p&gt;
&lt;p&gt;Field2 is Infopath field Process Area&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Field3 is Infopath field Project Status&lt;/p&gt;
&lt;p&gt;Field9 is Infopath field Sub Process&lt;/p&gt;
&lt;p&gt;@SP-ProcessAreas is Secondary Data sources&lt;/p&gt;
&lt;p&gt;&lt;u&gt;&lt;font color="#0066cc"&gt;@_.Project_Status is Secondary Data Sources&lt;/font&gt;&lt;/u&gt;&lt;/p&gt;
&lt;p&gt;&lt;u&gt;&lt;font color="#0066cc"&gt;@SP-SubProcess is Secoundary Data Sources&lt;/font&gt;&lt;/u&gt;&lt;/p&gt;
&lt;p&gt;What I am trying do:&lt;/p&gt;
&lt;p&gt;Excel Sumproduct Example :&lt;/p&gt;
&lt;p&gt;Sumproduct((SP-ProcessArea=Field2)*(_.ProjectStatus=Field3)*(SP-SubProcess=Field9)*SP-FOL1)&lt;/p&gt;
&lt;p&gt;When I&amp;nbsp;validated above XPath Expersion it display no error in formula. However when I run the form it display an error as Nan.&lt;/p&gt;
&lt;p&gt;Your help in this much apprciated.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to create a Sumproduct or Sumif formula in Infopath 2010</title><link>https://www.infopathdev.com:443/forums/thread/68164.aspx</link><pubDate>Thu, 07 Jul 2011 02:16:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68164</guid><dc:creator>edwinbrito</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68164.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=68164</wfw:commentRss><description>&lt;p&gt;It worked!!!&lt;/p&gt;&lt;p&gt;Thanks Jim. You are awesome! &lt;/p&gt;</description></item><item><title>Re: How to create a Sumproduct or Sumif formula in Infopath 2010</title><link>https://www.infopathdev.com:443/forums/thread/68163.aspx</link><pubDate>Thu, 07 Jul 2011 01:51:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68163</guid><dc:creator>Jim Cantwell</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68163.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=68163</wfw:commentRss><description>&lt;p&gt;You have a typo in the xpath, the left&amp;nbsp;square bracket &amp;#39;[&amp;#39; should not be preceded by a forward slash&amp;nbsp;&amp;#39;/&amp;#39;.&amp;nbsp; And the second argument to the eval function should be relative to the node which is returned by the xpath.&lt;/p&gt;&lt;p&gt;Try:&lt;/p&gt;&lt;p&gt;sum(eval(../my:ByDocID/my:group2[my:IDColor=&amp;#39;B/W&amp;#39;], &amp;#39;my:IDNoPages * my:IDTimes&amp;#39;))&lt;/p&gt;&lt;p&gt;One other thing, you are using a relative path &amp;quot;../&amp;quot; in your eval, this will be relative to the node where the xpath is used.&amp;nbsp; If you are using a calculated value control, it will be relative to the xpath of the section it is contained.&amp;nbsp; Or you can use a full xpath and not a relative xpath.&lt;/p&gt;</description></item><item><title>Re: How to create a Sumproduct or Sumif formula in Infopath 2010</title><link>https://www.infopathdev.com:443/forums/thread/68161.aspx</link><pubDate>Thu, 07 Jul 2011 00:30:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68161</guid><dc:creator>edwinbrito</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68161.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=68161</wfw:commentRss><description>&lt;p&gt;I don&amp;#39;t know what I&amp;#39;m doing wrong. I am getting the following error:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;em&gt;&lt;u&gt;Node-test expected.&lt;br /&gt;&lt;/u&gt;sum(eval(../my:ByDocID/my:group2/--&amp;gt;[&amp;lt;--my:IDColor=&amp;#39;B/W&amp;#39;], &amp;#39;../my:ByDocID/my:group2/my:IDNoPages * ../my:ByDocID/my:group2/my:IDTimes&amp;#39;))&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;this is the formula with the changes to fit it in to my fields:&lt;/p&gt;&lt;p&gt;sum(eval(../my:ByDocID/my:group2/[my:IDColor=&amp;#39;B/W&amp;#39;], &amp;#39;../my:ByDocID/my:group2/my:IDNoPages * ../my:ByDocID/my:group2/my:IDTimes&amp;#39;))&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks for your help!!&lt;/p&gt;</description></item><item><title>Re: How to create a Sumproduct or Sumif formula in Infopath 2010</title><link>https://www.infopathdev.com:443/forums/thread/68157.aspx</link><pubDate>Wed, 06 Jul 2011 23:37:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68157</guid><dc:creator>edwinbrito</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68157.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=68157</wfw:commentRss><description>&lt;p&gt;&lt;img src="http://i275.photobucket.com/albums/jj295/edwinbrito/BD%20Resources/DataSource.jpg" alt="" /&gt;&lt;/p&gt;</description></item><item><title>Re: How to create a Sumproduct or Sumif formula in Infopath 2010</title><link>https://www.infopathdev.com:443/forums/thread/68156.aspx</link><pubDate>Wed, 06 Jul 2011 23:37:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68156</guid><dc:creator>edwinbrito</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68156.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=68156</wfw:commentRss><description>&lt;p&gt;Great! let me try it...&lt;/p&gt;</description></item><item><title>Re: How to create a Sumproduct or Sumif formula in Infopath 2010</title><link>https://www.infopathdev.com:443/forums/thread/68127.aspx</link><pubDate>Wed, 06 Jul 2011 15:28:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68127</guid><dc:creator>Jim Cantwell</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68127.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=68127</wfw:commentRss><description>&lt;p&gt;Using Jimmy&amp;#39;s example, just add the filter to the xpath.&lt;/p&gt;&lt;p&gt;sum(eval(/my:myFields/my:myGroup/my:myParentField&lt;strong&gt;[my:Color=&amp;#39;B/W&amp;#39;]&lt;/strong&gt;, &amp;#39;my:childField1 * my:childField2&amp;#39;))&lt;/p&gt;</description></item><item><title>Re: How to create a Sumproduct or Sumif formula in Infopath 2010</title><link>https://www.infopathdev.com:443/forums/thread/68125.aspx</link><pubDate>Wed, 06 Jul 2011 14:54:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68125</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68125.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=68125</wfw:commentRss><description>&lt;p&gt;Could you attach a screenshot of your data source?&lt;/p&gt;</description></item><item><title>Re: How to create a Sumproduct or Sumif formula in Infopath 2010</title><link>https://www.infopathdev.com:443/forums/thread/68124.aspx</link><pubDate>Wed, 06 Jul 2011 14:24:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68124</guid><dc:creator>edwinbrito</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68124.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=68124</wfw:commentRss><description>&lt;p&gt;Thanks Jim, &lt;/p&gt;&lt;p&gt;Still, I haven&amp;#39;t been able to figure it out. &lt;/p&gt;&lt;p&gt;This is my situation: I need to calculate the total of color and B/W copies separately in a Printing Request Form. &lt;/p&gt;&lt;p&gt;This is the form:&lt;/p&gt;&lt;p&gt;&lt;img style="width:708px;height:182px;" title="Printing Request" alt="Printing Request" src="http://i275.photobucket.com/albums/jj295/edwinbrito/BD%20Resources/form.jpg" width="708" height="182" /&gt;&lt;/p&gt;&lt;p&gt;I need to add the &amp;#39;# of pages&amp;#39; x &amp;#39;Times&amp;#39; only for color and B/W printouts. &lt;/p&gt;&lt;p&gt;Thanks for your help!!&lt;/p&gt;</description></item><item><title>Re: How to create a Sumproduct or Sumif formula in Infopath 2010</title><link>https://www.infopathdev.com:443/forums/thread/68123.aspx</link><pubDate>Wed, 06 Jul 2011 14:23:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68123</guid><dc:creator>edwinbrito</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68123.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=68123</wfw:commentRss><description>&lt;p&gt;Thanks Jimmy, &lt;/p&gt;&lt;p&gt;Still,&amp;nbsp;I&amp;nbsp;haven&amp;#39;t been able to figure it out. &lt;/p&gt;&lt;p&gt;This is my situation: I need to calculate the total of color and B/W copies separately in a Printing Request Form. &lt;/p&gt;&lt;p&gt;This is the form:&lt;/p&gt;&lt;p&gt;&lt;img style="width:708px;height:182px;" title="Printing Request" alt="Printing Request" src="http://i275.photobucket.com/albums/jj295/edwinbrito/BD%20Resources/form.jpg" width="708" height="182" /&gt;&lt;/p&gt;&lt;p&gt;I need to&amp;nbsp;add the&amp;nbsp;&amp;#39;# of pages&amp;#39;&amp;nbsp;x &amp;#39;Times&amp;#39; only for color and B/W printouts. &lt;/p&gt;&lt;p&gt;Thanks for your help!!&lt;/p&gt;</description></item><item><title>Re: How to create a Sumproduct or Sumif formula in Infopath 2010</title><link>https://www.infopathdev.com:443/forums/thread/68121.aspx</link><pubDate>Wed, 06 Jul 2011 13:56:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68121</guid><dc:creator>edwinbrito</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68121.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=68121</wfw:commentRss><description>&lt;p&gt;I appreciate your response. Let me try to adapt it to my form.&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>Re: How to create a Sumproduct or Sumif formula in Infopath 2010</title><link>https://www.infopathdev.com:443/forums/thread/68102.aspx</link><pubDate>Wed, 06 Jul 2011 03:42:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68102</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68102.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=68102</wfw:commentRss><description>&lt;p&gt;You can carry out a sumproduct (or sum any other aggregate expression)&amp;nbsp;using the eval and sum functions:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;sum(eval(/my:myFields/my:myGroup/my:myParentField, &amp;#39;my:childField1 * my:childField2&amp;#39;))&lt;/p&gt;&lt;/blockquote&gt;</description></item></channel></rss>