<?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>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Average of 4 fields provided that they meet different conditions (&gt;n)</title><link>https://www.infopathdev.com:443/forums/thread/64351.aspx</link><pubDate>Fri, 18 Feb 2011 23:15:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64351</guid><dc:creator>matt.steele</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64351.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=64351</wfw:commentRss><description>&lt;p&gt;Thanks, Ernesto&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t use you solution, but it made me&amp;nbsp;remember about how rules work.&lt;/p&gt;
&lt;p&gt;I created 4 new fields, and then attached rules to each of the the original 4 fields to set the value of the the new fields to equal the values of the original fields as long as they met the criterea&amp;nbsp;OR to set the new fields values to &amp;quot;&amp;quot; (blank) if the original fields did not meet the critera.&amp;nbsp; Then I set the &amp;quot;total average&amp;quot;&amp;nbsp;formula to average the new fields and used InfoPath&amp;#39;s ability to ignore blank values in its calculations and viola!&lt;/p&gt;
&lt;p&gt;Thank you for your help! : )&lt;/p&gt;
&lt;p&gt;~Matt&lt;/p&gt;</description></item><item><title>Re: Average of 4 fields provided that they meet different conditions (&gt;n)</title><link>https://www.infopathdev.com:443/forums/thread/64280.aspx</link><pubDate>Thu, 17 Feb 2011 13:21:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64280</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64280.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=64280</wfw:commentRss><description>&lt;p&gt;You can have multiple calculations and just display the one you want. So for example:&lt;/p&gt;&lt;p&gt;field1 holds calculation #1, hidden for condition A&lt;/p&gt;&lt;p&gt;field2 holds calculation #2, hidden for condition B&lt;/p&gt;&lt;p&gt;etc. &lt;/p&gt;&lt;p&gt;So in your case you might have field1= average of all 4 fields, and then only display this calculation if the fields all have a value greater than 50.&lt;/p&gt;&lt;p&gt;field2 = average of 3 fields, only displayed when the excluded fields does not have value greater than 50,&lt;/p&gt;&lt;p&gt;More is possible with code, but this seems like a simple way of approaching this problem codelessly. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Average of 4 fields provided that they meet different conditions (&gt;n)</title><link>https://www.infopathdev.com:443/forums/thread/64241.aspx</link><pubDate>Wed, 16 Feb 2011 17:39:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64241</guid><dc:creator>matt.steele</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64241.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=64241</wfw:commentRss><description>&lt;p&gt;Program: InfoPath2010 Designer&lt;/p&gt;
&lt;p&gt;Form: InfoPath 2007 compatible browser-enabled form&lt;/p&gt;
&lt;p&gt;Scenario: I have a browser-enabled form in which the totals from 4 sections are averaged&amp;nbsp;in a &amp;quot;TotalChecklistCompliance&amp;quot; field.&lt;/p&gt;
&lt;p&gt;Very simple until...&lt;/p&gt;
&lt;p&gt;It has been requested that I re-work the average so that&amp;nbsp;a given&amp;nbsp;field is included in the averaging&amp;nbsp;formula only if it has a value&amp;nbsp;greater than 50. (Well, for 3 of the fields, anyway; the criteria for the 4th field is that it must be higher than 70 to be included in the averaging)&lt;/p&gt;
&lt;p&gt;How would I go about doing this? If only InfoPath could do a simple &amp;quot;AVERAGEIF&amp;quot; function. Or even an &amp;quot;IF&amp;quot;&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;
&lt;p&gt;~Matt&lt;/p&gt;</description></item></channel></rss>