<?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: Calculating fields after filled by a data query in Infopath</title><link>https://www.infopathdev.com:443/forums/thread/119105.aspx</link><pubDate>Tue, 29 May 2018 17:02:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119105</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119105.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=119105</wfw:commentRss><description>Wonderful! Glad you have it working. :-)</description></item><item><title>Re: Calculating fields after filled by a data query in Infopath</title><link>https://www.infopathdev.com:443/forums/thread/119101.aspx</link><pubDate>Sun, 27 May 2018 13:07:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119101</guid><dc:creator>envirodaniel</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119101.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=119101</wfw:commentRss><description>I figured it out. The expression was the filter for the dates, I set it up as I did in the attached file and it can calculate values properly.</description></item><item><title>Re: Calculating fields after filled by a data query in Infopath</title><link>https://www.infopathdev.com:443/forums/thread/119100.aspx</link><pubDate>Fri, 25 May 2018 21:02:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119100</guid><dc:creator>envirodaniel</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119100.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=119100</wfw:commentRss><description>Thank you for taking the time to look at my form. I understand now what went into the expression, it is filtering all files tagged &amp;quot;TEMP&amp;quot; and using the string to compare what I believe are the dates of the files. I am not getting a validation error anymore after inputting your formula. However, the new calculated value shows &amp;quot;0&amp;quot; each time it is calculated. Nonetheless, we are still making progress here, it is better than the huge number I was getting earlier. Could you teach me how you got the &amp;quot;msxsl:string-compare&amp;quot; expression and what went into it? If I can figure out how to set this up I will be able to implement this for the rest of the calculated fields.</description></item><item><title>Re: Calculating fields after filled by a data query in Infopath</title><link>https://www.infopathdev.com:443/forums/thread/119096.aspx</link><pubDate>Thu, 24 May 2018 19:48:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119096</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119096.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=119096</wfw:commentRss><description>Looks like you aren&amp;#39;t filtering the data in your sum function. You are hiding rows on the form, but the data is still present in the secondary data connection. The sum function needs to have the field filtered in the same way as you are filtering your repeating table. You may want to change that total_inspected field to a decimal, so you aren&amp;#39;t getting a validation error on sum (you can use the formatting for the control to not display decimal points), and try this formula for the default (just open the formula editor for the default and paste this in place of your current formula): sum(xdXDocument:GetDOM(&amp;quot;526 Data&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Pieces_x0020_Inspected[../d:Tempfinal != &amp;quot;TEMP&amp;quot; and msxsl:string-compare(../d:Date, xdXDocument:get-DOM()/my:myFields/my:end_date) = 0])</description></item><item><title>Re: Calculating fields after filled by a data query in Infopath</title><link>https://www.infopathdev.com:443/forums/thread/119095.aspx</link><pubDate>Thu, 24 May 2018 18:58:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119095</guid><dc:creator>envirodaniel</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119095.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=119095</wfw:commentRss><description>The search form may not pull data properly for external users, but here is the file.</description></item><item><title>Re: Calculating fields after filled by a data query in Infopath</title><link>https://www.infopathdev.com:443/forums/thread/119093.aspx</link><pubDate>Thu, 24 May 2018 18:55:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119093</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119093.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=119093</wfw:commentRss><description>So - can you attach a copy of your form under the Options tab? I can take a look.</description></item><item><title>Re: Calculating fields after filled by a data query in Infopath</title><link>https://www.infopathdev.com:443/forums/thread/119090.aspx</link><pubDate>Thu, 24 May 2018 18:41:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119090</guid><dc:creator>envirodaniel</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119090.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=119090</wfw:commentRss><description>Just following up, screenshot of the inspected cell. The actual value here should be 117. In the field&amp;#39;s default value I have &amp;quot;sum(inspected)&amp;quot;, where inspected is the field&amp;#39;s name under datafields in the Secondary Data Connection fields.</description></item><item><title>Calculating fields after filled by a data query in Infopath</title><link>https://www.infopathdev.com:443/forums/thread/119088.aspx</link><pubDate>Thu, 24 May 2018 18:15:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119088</guid><dc:creator>envirodaniel</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119088.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=119088</wfw:commentRss><description>I&amp;#39;m currently working on a form for a department supervisor. Product is inspected and submitted to a sharepoint library via a different form, and this current form will pull the data between two specified dates and show the supervisor monthly totals such as how many pieces inspected, how many rejected, % rejected, etc. 

I currently have a functioning search form using a data connection and a repeating table that I dragged from the data connection on the sidebar. However, I am unable to get the form to calculate sums/count total number of lines, etc.

How can I calculate the values in a repeating table that has been filled by a data query within Infopath? Not sure if this is the right place for this question.</description></item></channel></rss>