<?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: Correct Syntax</title><link>https://www.infopathdev.com:443/forums/thread/6817.aspx</link><pubDate>Mon, 16 May 2005 14:12:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6817</guid><dc:creator>Fast Flare</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6817.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6817</wfw:commentRss><description>Hi Patrick! I'm sending you an email with all the info. Thanks! Tracy&lt;br /&gt;&lt;br /&gt;Hi Tracy,&lt;br /&gt;Cool site! What do you charge for logos?&lt;br /&gt;:)&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev&lt;br /&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;&lt;br /&gt;T. Hunt&lt;br /&gt;tracy@fastflare.com&lt;br /&gt;www.fastflare.com</description></item><item><title>Re: Correct Syntax</title><link>https://www.infopathdev.com:443/forums/thread/6816.aspx</link><pubDate>Thu, 12 May 2005 16:26:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6816</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6816.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6816</wfw:commentRss><description>Hi Tracy,&lt;br /&gt;Cool site! What do you charge for logos?&lt;br /&gt;:)&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Correct Syntax</title><link>https://www.infopathdev.com:443/forums/thread/6815.aspx</link><pubDate>Thu, 12 May 2005 13:44:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6815</guid><dc:creator>Fast Flare</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6815.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6815</wfw:commentRss><description>Thanks! Very helpful.....&lt;br /&gt;&lt;br /&gt;T. Hunt&lt;br /&gt;tracy@fastflare.com&lt;br /&gt;www.fastflare.com</description></item><item><title>Re: Correct Syntax</title><link>https://www.infopathdev.com:443/forums/thread/6814.aspx</link><pubDate>Wed, 11 May 2005 17:05:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6814</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6814.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6814</wfw:commentRss><description>XPath itself doesn't have an avg() function. InfoPath does have an avg() function under XDocument.Util.Math.Avg() but it requires a list. If you have a repeating group, the list is easy to obtain. Otherwise you might be able to get a list by doing a specialized select in XPath such as SelectNodes("field1 | field2 | field3 | field4").&lt;br /&gt;&lt;br /&gt;Another way to do this is not very complex, just brute force... simply add all four fields together and then divide by four:&lt;br /&gt;&lt;br /&gt;(field1 + field2 + field3 + field4) / 4.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Correct Syntax</title><link>https://www.infopathdev.com:443/forums/thread/4659.aspx</link><pubDate>Tue, 10 May 2005 13:33:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4659</guid><dc:creator>Fast Flare</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4659.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4659</wfw:commentRss><description>Here's the problem:&lt;br /&gt;&lt;br /&gt;I have 4 text boxes that need to be averaged, and the result shown in another box. All the text boxes are decimals. I cannot seem to find the right syntax for averaging the four fields. I try using the formula button in the text box property dialog box (with the "avg" function), but I only get a sum of the numbers. Also, when I publish the form, before it's filled out, there is a "NaN" showing in the box. &lt;br /&gt;&lt;br /&gt;Does anyone know the correct syntax for this? Thanks.&lt;br /&gt;&lt;br /&gt;T. Hunt&lt;br /&gt;www.goisc.com&lt;br /&gt;www.fastflare.com</description></item></channel></rss>