<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Infopath Calculations - Sumproduct</title><link>https://www.infopathdev.com:443/forums/thread/72321.aspx</link><pubDate>Wed, 23 Nov 2011 17:16:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72321</guid><dc:creator>mdasifkhaleel</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72321.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=72321</wfw:commentRss><description>I got the solution.

Replaced &amp;quot;@SP-FOL1&amp;quot; with &amp;quot;../@SP-FOL1&amp;quot;</description></item><item><title>Re: Infopath Calculations - Sumproduct</title><link>https://www.infopathdev.com:443/forums/thread/72288.aspx</link><pubDate>Tue, 22 Nov 2011 18:00:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72288</guid><dc:creator>mdasifkhaleel</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72288.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=72288</wfw:commentRss><description>&lt;p&gt;Matt&lt;/p&gt;
&lt;p&gt;Hope you can help me.&lt;/p&gt;
&lt;p&gt;XPath 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 (String)&lt;/p&gt;
&lt;p&gt;&lt;font color="#0066cc"&gt;&lt;u&gt;@_.Project_Status is Secondary Data Sources &lt;/u&gt;&lt;/font&gt;&lt;font color="#000000"&gt;(String)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0066cc"&gt;&lt;u&gt;@SP-SubProcess is Secoundary Data Sources &lt;/u&gt;&lt;/font&gt;&lt;font color="#000000"&gt;(String)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;u&gt;&lt;font color="#0066cc"&gt;@SP-FOL1 is Secoundary Data Sources (Decimal)&lt;/font&gt;&lt;/u&gt;&lt;/p&gt;
&lt;p&gt;I am trying do similar to Excel Sumproduct&amp;nbsp;Formual:&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 appreciated.&lt;/p&gt;</description></item><item><title>Re: Infopath Calculations</title><link>https://www.infopathdev.com:443/forums/thread/31087.aspx</link><pubDate>Thu, 31 Jul 2008 21:34:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31087</guid><dc:creator>Neil Stebbing</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31087.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=31087</wfw:commentRss><description>&lt;p&gt;I wouldn&amp;#39;t do it the way Matt told you, i have nothing against what he told you. You don&amp;#39;t need to add extra data fields to your datasource. Use eval to evaluate an expression (but you don&amp;#39;t pass the expression box which are your line item totals&amp;nbsp;to eval). Tell eval your fields used in the expression come from a certain datasource and it should work.&lt;/p&gt;
&lt;p&gt;sum(eval(your repeating datasource group goes here, &amp;quot;tns:MonTime + tns:TueTime + tns:WedTime + tns:ThuTime + tns:FriTime + tns:SatTime + tns:SunTime&amp;quot;))&lt;/p&gt;
&lt;p&gt;I wouldn&amp;#39;t type the text, use the &amp;quot;insert field or group button&amp;quot; to add the repeating datasource group and to add your fields. MonTime are fields from my datasource these should refer to the fields from your datasource. This formula i have in the footer of my repeating table.&lt;/p&gt;</description></item><item><title>Re: Infopath Calculations</title><link>https://www.infopathdev.com:443/forums/thread/24672.aspx</link><pubDate>Mon, 26 Nov 2007 08:16:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24672</guid><dc:creator>PellyRan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24672.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=24672</wfw:commentRss><description>&lt;p&gt;Dear Matt. &lt;/p&gt;
&lt;p&gt;More then a year since you give Jerry your answer and i have the same problem. Somehow your stages does not work for me. when i put the formula at the expression box in the table its works fine. I copy the formula to the &amp;quot;LineTotal&amp;quot; node into the defult value box - up to here everything is OK. when i bind the expression box to &amp;quot;Linetotal&amp;quot; the Xpath says @my:LineTotal and it show the text of the formula and not the value of the formula.&lt;/p&gt;
&lt;p&gt;Have not got a clue where i work wrong.&lt;/p&gt;
&lt;p&gt;Pleeeease...&lt;/p&gt;
&lt;p&gt;Thank you very much&lt;/p&gt;
&lt;p&gt;Ran&lt;/p&gt;</description></item><item><title>Re: Infopath Calculations</title><link>https://www.infopathdev.com:443/forums/thread/2190.aspx</link><pubDate>Thu, 20 Apr 2006 14:14:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2190</guid><dc:creator>Jerry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2190.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2190</wfw:commentRss><description>Matt.... &lt;font color="red"&gt;you've been a life saver!!!!&lt;/font id="red"&gt;  Thanks so much for your quick responses to my questions.  Part of my initial problem was that I didn't have the latest Infopath updates.... AND 'thought' I HAD to use Expression boxes to perform calculations.  That thought sure got me going in the wrong direction.  I took your suggestions.... had to tweak and hack with them somewhat, but I was able to do what I wanted.&lt;br /&gt;&lt;font color="red"&gt;&lt;b&gt;GREAT ASSISTANCE FROM YOU.... THANKS AGAIN.&lt;/b&gt;&lt;/font id="red"&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Infopath Calculations</title><link>https://www.infopathdev.com:443/forums/thread/2189.aspx</link><pubDate>Tue, 18 Apr 2006 22:09:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2189</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2189.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2189</wfw:commentRss><description>Hi Jerry,&lt;br /&gt;&lt;br /&gt;Try this:&lt;br /&gt;&lt;br /&gt;Double-click on the repeating table in the view. Switch to the Display tab, check the box labeled "Include footer" and then click OK. This will give you a good place to place the totals nodes.&lt;br /&gt;&lt;br /&gt;The best place to add the totals nodes are inside the top-level group of the repeating table.  For instance when you insert a repeating table control InfoPath automatically generates a schema. You should place your nodes in the group1 group, see this diagram for reference:&lt;br /&gt;&lt;br /&gt;myfields&lt;br /&gt;--group1&lt;br /&gt;----group2 (repeating)&lt;br /&gt;------field1&lt;br /&gt;------field2&lt;br /&gt;------field3&lt;br /&gt;----CumaltiveTotal&lt;br /&gt;----Freight&lt;br /&gt;----TaxRate&lt;br /&gt;&lt;br /&gt;Now, you can use formulas in Cumlative field to summ all lineItemTotals. Then use formulas for all the other fields ( these are all expression boxes):&lt;br /&gt;&lt;br /&gt;SubTotal = CumaltiveTotal + Freight&lt;br /&gt;TaxAmt = (CumalativeTotal + Freight) * TaxRate&lt;br /&gt;GrandTotal = (CumaltiveTotal + Freight) + ((CumalativeTotal + Freight) * TaxRate)&lt;br /&gt;&lt;br /&gt;You could store the results of these calculations in nodes instead of just displaying them in expression boxes, but it's not necessary. It will depend on your requirements. I hope this helps, and sorrry if I seem a little rushed!</description></item><item><title>Re: Infopath Calculations</title><link>https://www.infopathdev.com:443/forums/thread/2188.aspx</link><pubDate>Tue, 18 Apr 2006 21:09:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2188</guid><dc:creator>Jerry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2188.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2188</wfw:commentRss><description>Matt.... thanks so ever much for your assistance.  Following your instructions I was able to calculate 'LineTotals' in the repeating table.  Now....  if you refer to the diagram below, I need to calculate a Cumulative Total, which consists of all the LineTotals, then input a Freight amount, and add that to the Cumulative Total amt, to arrive at the SubTotal, then calculate a Tax amount and add that to the SubTotal to arrive at the Grand Total.  Would you be so kind as to direct me how to do this?  I attempted to include the total boxes as part of the repeating table, but that doesn't work because when you select next line item, it repeats the Grand Total box.&lt;br /&gt;(Repeating table)&lt;br /&gt;                    Bill Of Materials&lt;br /&gt;        Qty field  *  Unit Price field  =  LineTotal&lt;br /&gt;Line 1 values   2        *        $3        =        $6&lt;br /&gt;Line 2 values   9        *       $10        =       $90&lt;br /&gt;&lt;br /&gt;                           Cumulative Total       $96&lt;br /&gt;                                 Freight          $25&lt;br /&gt;                                SubTotal         $121&lt;br /&gt;                   Tax Rate: 6.50% Tax Amt         $8&lt;br /&gt;                              Grand Total        $129&lt;br /&gt;(End of repeating table)&lt;br /&gt;                      &lt;br /&gt;</description></item><item><title>Re: Infopath Calculations</title><link>https://www.infopathdev.com:443/forums/thread/2187.aspx</link><pubDate>Mon, 17 Apr 2006 21:44:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2187</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2187.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2187</wfw:commentRss><description>Hi Jerry and welcome to the forum!&lt;br /&gt;&lt;br /&gt;Expression boxes are used only for displaying data, there is no way that you can get at the calculated value within an expression box and use it elsewhere.  What you want to do is add a new column to your repeating table to calculate each line item total, and then you can get at these values and create a subtotal.  Don't worry, you will only be changing the data source and can make it look exactly the same as you have it now.&lt;br /&gt;&lt;br /&gt;Try this steps:&lt;br /&gt;1. From the data source task pane right click the repeating group, choose Add, and add a new field named "LineTotal". Press OK.&lt;br /&gt;2. Double-click the expression  box that you have already placed, copy the formula.&lt;br /&gt;3. From the data source task pane, double-click the node you added in step 1. Paste the formula into the default value field.&lt;br /&gt;4. Right-click the expression box, select Change Binding, and bind the expression box to the node you created in step 1.&lt;br /&gt;5. Add an expression box or another node to sum all of the line item totals and for the default value use a formula like this:&lt;br /&gt;&lt;br /&gt;sum( "/my:myFields/my:Materials/my:Material/my:LineTotal" );&lt;br /&gt;&lt;br /&gt;Hope this helps, let us know if you have any questions!</description></item><item><title>Infopath Calculations</title><link>https://www.infopathdev.com:443/forums/thread/1250.aspx</link><pubDate>Mon, 17 Apr 2006 19:48:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1250</guid><dc:creator>Jerry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1250.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1250</wfw:commentRss><description>I'm real new to Infopath and am hacking my way through.  I have figured out how to do what I want so far, with the following exception:&lt;br /&gt;I'm creating a bill of materials...  Description, quantity x price = Amount1.  Amount 1 is calculated in an Expression Box.  The bill of materials is designed in a simple Repeating table.  As you add rows to the table, the quanty and price is keyed in and the Amounts2,3 4, each, per row, is calculated, but I can't figure out how to add up all the Amounts into another overall total... sort of a subtotal, then I need to calculate taxes and add that to the subtotal, in order to get a Final total.  Please help... I'm missing a critical piece in order to calculate the Final total.  It appears I can't add, or calculate Expression Boxes, in this case to arrive at a subtotal and then a Final total.</description></item></channel></rss>