<?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 the average of 5 non-repeating fields</title><link>https://www.infopathdev.com:443/forums/thread/75296.aspx</link><pubDate>Wed, 15 Feb 2012 14:44:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:75296</guid><dc:creator>edwinbrito</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/75296.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=75296</wfw:commentRss><description>&lt;p&gt;It worked like a swiss clock!&lt;/p&gt;&lt;p&gt;Thanks!!&lt;/p&gt;</description></item><item><title>Re: Calculating the average of 5 non-repeating fields</title><link>https://www.infopathdev.com:443/forums/thread/75284.aspx</link><pubDate>Wed, 15 Feb 2012 07:36:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:75284</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/75284.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=75284</wfw:commentRss><description>&lt;p&gt;Try avg((firstField | secondField | thirdField | fourthField | fifthField)[. &amp;gt; 1])&lt;/p&gt;</description></item><item><title>Calculating the average of 5 non-repeating fields</title><link>https://www.infopathdev.com:443/forums/thread/75282.aspx</link><pubDate>Wed, 15 Feb 2012 04:45:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:75282</guid><dc:creator>edwinbrito</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/75282.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=75282</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I need to calculate de average of 5 non-repeating fields. My problem is that I need to do this only if the fields have a value on it. I tried sumung all the fields and dividing the result by 5, but the average is not accurrate if one or more&amp;nbsp;of the fileds have no value.&lt;/p&gt;&lt;p&gt;Field:&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;a = 10&lt;/p&gt;&lt;p&gt;b = 10&lt;/p&gt;&lt;p&gt;c = 10&lt;/p&gt;&lt;p&gt;d = 10&lt;/p&gt;&lt;p&gt;e = (empty)&lt;/p&gt;&lt;p&gt;Ave= (10 +10 +10 +10 +0) / 5 =&amp;nbsp;&lt;strong&gt;8 :-(&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;What I want to accomplish is to&amp;nbsp;calculate the average only for the fields that are greater than 1.&lt;/p&gt;&lt;p&gt;Any sugestions?&lt;/p&gt;</description></item></channel></rss>