<?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: average of radio boxes - non repeating table</title><link>https://www.infopathdev.com:443/forums/thread/22094.aspx</link><pubDate>Mon, 30 Jul 2007 17:22:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22094</guid><dc:creator>davidair</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22094.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=22094</wfw:commentRss><description>&lt;p class="MsoNormal" style="margin:0cm 0cm 10pt;"&gt;&lt;font face="Calibri" size="3"&gt;The avg() built-in InfoPath function takes a nodeset as an argument, that is, an xpath that evaluates to one or more nodes.&lt;/font&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 10pt;"&gt;&lt;font face="Calibri" size="3"&gt;For example, if you have a repeating value /my:myFields/my:group1/my:group2/field1 (where group2 is repeating) then a xdMath:Avg(/my:myFields/my:group1/my:group2/field1) will return the average of values of each instance of group2/field1.&lt;/font&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 10pt;"&gt;&lt;font face="Calibri" size="3"&gt;Your case is not different but you need to construct a nodeset based on your non-repeating nodes. This can be done by using the xpath OR operator |. For example, if your fields are called field1, field2 and field3, the formula to use will be:&lt;/font&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0cm 0cm 10pt;"&gt;&lt;font face="Calibri" size="3"&gt;&lt;strong&gt;xdMath:Avg(my:field1 | my:field2 | my:field3)&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>average of radio boxes - non repeating table</title><link>https://www.infopathdev.com:443/forums/thread/22088.aspx</link><pubDate>Mon, 30 Jul 2007 14:32:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22088</guid><dc:creator>robbieswife2b</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22088.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=22088</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;&amp;nbsp;I have part of my form which has 6 radio boxes on it (not in a repeating table) and I would like to have a field which will take the average of those 5 boxes - can I do this?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Many thanks&lt;/p&gt;</description></item></channel></rss>