<?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: NaN error on avg calculation</title><link>https://www.infopathdev.com:443/forums/thread/94041.aspx</link><pubDate>Sat, 02 Nov 2013 14:20:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94041</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94041.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=94041</wfw:commentRss><description>&lt;p&gt;Hi - does the NaN (Not a Number) error persist if you fill in some values in the fields that you are averaging? Here&amp;#39;s a link to a blog post that may be of help in that case: &lt;a href="http://www.braintrove.com/id/71"&gt;http://www.braintrove.com/id/71&lt;/a&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>NaN error on avg calculation</title><link>https://www.infopathdev.com:443/forums/thread/93961.aspx</link><pubDate>Tue, 29 Oct 2013 20:16:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93961</guid><dc:creator>Mauricegetsit</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93961.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=93961</wfw:commentRss><description>&lt;font size="3"&gt;&lt;font face="Calibri"&gt;I created an InfoPath 2010 interactive form.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;I created a calculation value using avg.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;I have a sections for percentage completed.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Each section I have a whole integer field for percentage complete.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;For example, section 1 has a percentage complete, section 2 and so on.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;I want and average of the full part (which has three to four sections. So I group all four sections together and named the group PercentageCompleted. I set a &lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;variable then an average calculated field.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;I grouped the percentage completes into a group “PercentageComplete”.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;To calculate an average I write avg(PercentageComplete) when I check it I had/have no errors.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Yet when I preview and even in form filler mode I get “NaN”.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;When I hover over the field I get “Only with Integer” enclosed in a box of red dash lines.&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Please offer some good advice. &lt;/font&gt;&lt;/font&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>