<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Calculate average of Infopath table</title><link>https://www.infopathdev.com:443/forums/thread/73755.aspx</link><pubDate>Tue, 10 Jan 2012 20:14:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73755</guid><dc:creator>Marnie</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73755.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=73755</wfw:commentRss><description>&lt;p&gt;Sorry about the&amp;nbsp;delayed reply - I got pulled into another project and just got back to this.&amp;nbsp; This is what worked based on the suggested post:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Put the fields to average in their own group&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Created a text box with type of Decimal (double) for the field to display the average&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;In the Default Value field put this as XPath:&amp;nbsp; xdMath:Avg(../my:MyGroup/*)&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Thanks for your help!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Calculate average of Infopath table</title><link>https://www.infopathdev.com:443/forums/thread/72911.aspx</link><pubDate>Tue, 13 Dec 2011 22:16:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72911</guid><dc:creator>Marnie</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72911.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=72911</wfw:commentRss><description>&lt;p&gt;Thank you! I will try these suggestions.&lt;/p&gt;</description></item><item><title>Re: Calculate average of Infopath table</title><link>https://www.infopathdev.com:443/forums/thread/72910.aspx</link><pubDate>Tue, 13 Dec 2011 22:13:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72910</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72910.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=72910</wfw:commentRss><description>&lt;p&gt;Also please have a look at this forum post:&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:12pt;mso-fareast-font-family:&amp;#39;Times New Roman&amp;#39;;mso-ansi-language:EN-US;mso-fareast-language:ZH-CN;mso-bidi-language:AR-SA;"&gt;&lt;a href="http://www.infopathdev.com/forums/p/20236/70187.aspx#70187"&gt;&lt;strong&gt;&lt;font color="#0000ff"&gt;Re: Average a group of fields only if they contain data&lt;/font&gt;&lt;/strong&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: Calculate average of Infopath table</title><link>https://www.infopathdev.com:443/forums/thread/72908.aspx</link><pubDate>Tue, 13 Dec 2011 21:49:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72908</guid><dc:creator>Anson Hidajat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72908.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=72908</wfw:commentRss><description>&lt;p&gt;Hi there,&lt;/p&gt;&lt;p&gt;You&amp;#39;ll need to create a filter on the field that you&amp;#39;re doing the count on.&amp;nbsp; The filter should say something like if Field1 is greater than 0.&lt;/p&gt;&lt;p&gt;Here is an article about filters that may help:&lt;/p&gt;&lt;p&gt;&lt;a href="http://office.microsoft.com/en-us/infopath-help/filter-the-data-that-is-displayed-in-a-control-HA010024281.aspx"&gt;http://office.microsoft.com/en-us/infopath-help/filter-the-data-that-is-displayed-in-a-control-HA010024281.aspx&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Calculate average of Infopath table</title><link>https://www.infopathdev.com:443/forums/thread/72903.aspx</link><pubDate>Tue, 13 Dec 2011 21:22:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72903</guid><dc:creator>Marnie</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72903.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=72903</wfw:commentRss><description>&lt;p&gt;&lt;span style="LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;mso-fareast-font-family:&amp;#39;Times New Roman&amp;#39;;mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;I have several tables in an InfoPath form that contain numbers.&amp;nbsp; I have&amp;nbsp;calculated value fields to determine the average of the numbers entered in&amp;nbsp;each table.&amp;nbsp; The problem is that it is calculating the average based on the total number of fields in the table and most of the time some of the fields do not have values.&amp;nbsp;&amp;nbsp; I tried this: (my:Field1 + my: Field2 + my: Field3 + my: Field4) div (count(my: Field1) + count(my: Field2) + count(my: Field3) + count(my: Field4)) but it is still counting the blank fields.&amp;nbsp;&amp;nbsp; Any suggestions?&amp;nbsp; Thanks!&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>