<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Counting, Adding and geting an Avg..</title><link>https://www.infopathdev.com:443/forums/thread/4407.aspx</link><pubDate>Fri, 13 Apr 2007 10:25:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4407</guid><dc:creator>B.Shiva Prasad</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4407.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4407</wfw:commentRss><description>Hi redhead,&lt;br /&gt;&lt;br /&gt;For getting total/average of the fields which does contain the values, and count of the fields which having values. Based on that the average will be counted.&lt;br /&gt;&lt;br /&gt;Use this formulae if you want the average except the fields which does not having the value.&lt;br /&gt;&lt;br /&gt;(sum(field1[field1 != ""]) + sum(field2[field2 != ""]) + sum(field3[field3 != ""]) + sum(field4[field4 != ""])) / (count(field1[field1 != ""]) + count(field2[field2 != ""]) + count(field3[field3 != ""]) + count(field4[field4 != ""]))</description></item><item><title>Re: Counting, Adding and geting an Avg..</title><link>https://www.infopathdev.com:443/forums/thread/4406.aspx</link><pubDate>Wed, 11 Apr 2007 11:07:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4406</guid><dc:creator>Aruna</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4406.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4406</wfw:commentRss><description>Hi redhead,&lt;br /&gt;&lt;br /&gt;You can add and sum up two groups by using this formula:&lt;br /&gt;&lt;br /&gt;(sum(field1[. != ""]) + sum(filed2[. != ""])) / (count(field1[. != ""]) + count(field2[. != ""]))</description></item><item><title>Re: Counting, Adding and geting an Avg..</title><link>https://www.infopathdev.com:443/forums/thread/4405.aspx</link><pubDate>Tue, 10 Apr 2007 19:00:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4405</guid><dc:creator>redhead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4405.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4405</wfw:commentRss><description>This is funny but i got it to work.. but may i ask another question.. how do you add and sum up 2 groups&lt;br /&gt;&lt;br /&gt;sum(field1[. != ""]),(filed3[. != ""]) / count(field1[. != ""]), (field3[. !=""])&lt;br /&gt;&lt;br /&gt;what am i missing here?</description></item><item><title>Re: Counting, Adding and geting an Avg..</title><link>https://www.infopathdev.com:443/forums/thread/4404.aspx</link><pubDate>Tue, 10 Apr 2007 15:39:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4404</guid><dc:creator>redhead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4404.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4404</wfw:commentRss><description>Hi there i have added my form here so you can see what the mess i have created.. &lt;a href='http://www.media705.com/test.xsn' target='_blank' title='http://www.media705.com/test.xsn'&lt;a target="_blank" href=http://www.media705.com/test.xsn&gt;http://www.media705.com/test.xsn&lt;/a&gt;&lt;/a&gt;</description></item><item><title>Re: Counting, Adding and geting an Avg..</title><link>https://www.infopathdev.com:443/forums/thread/4403.aspx</link><pubDate>Tue, 10 Apr 2007 15:27:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4403</guid><dc:creator>redhead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4403.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4403</wfw:commentRss><description>Hi So Sorry i'm not sure i understand how to do this..&lt;br /&gt;&lt;br /&gt;how do you create a “field1” in repeating section?&lt;br /&gt;&lt;br /&gt;what i did, was from the Insert Controls, i click on Repeating Section and added a field in there. then added a new avg box under it and added the formula above.. and i keep getting this error.. Node-test expected. sum(field1[. != ""]) / --&amp;gt;count&amp;lt;-- (field1[. != "])</description></item><item><title>Re: Counting, Adding and geting an Avg..</title><link>https://www.infopathdev.com:443/forums/thread/4402.aspx</link><pubDate>Tue, 10 Apr 2007 07:16:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4402</guid><dc:creator>Aruna</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4402.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4402</wfw:commentRss><description>Hi redhead,&lt;br /&gt;&lt;br /&gt;One way to do this is, take one field “field1” in repeating section instead of taking four fields. After that repeating section display one field for average and do the following.&lt;br /&gt;Double click the average field and enter the following formula &lt;br /&gt;sum(field1[. != ""]) / count(field1[. != ""])&lt;br /&gt;&lt;br /&gt;If you want your schema as four fields like field1, field2, field3, field4 then you have to use ‘count#%92 function in code on those four fields when that field is not blank.&lt;br /&gt;&lt;br /&gt;Hope this helps you!</description></item><item><title>Counting, Adding and geting an Avg..</title><link>https://www.infopathdev.com:443/forums/thread/1958.aspx</link><pubDate>Tue, 10 Apr 2007 02:34:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1958</guid><dc:creator>redhead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1958.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1958</wfw:commentRss><description>Hi there..&lt;br /&gt;&lt;br /&gt;I'm going to do my best to explain what has been driving me crazy for a few weeks know.. what i have is 4 text fields.. field1, field2, field3, field4 and i have field5(the one i want a function on).. so what i want to do is have the total of the field entered only, then the average..&lt;br /&gt;&lt;br /&gt;i have it so that it ads all the fields and gives me an average..&lt;br /&gt;so when i open the form and i enter the following field1 = 1 field2 = 2 field3 = 3 field4 = 4 i get 2.5 in field 5&lt;br /&gt;&lt;br /&gt;what i want is that if i entered field1 = " ", field2 = 2, field3 = 3 and field4 = 4 , field5 would give me the total of field2,field3,field4 and the average of those 3 not all 4..&lt;br /&gt;&lt;br /&gt;it seams simple to do.. but its not really..&lt;br /&gt;&lt;br /&gt;so i just want field5 to give me the total / average of the fields entered only.. can i do this.. if so how... please help me going crazy..&lt;br /&gt;</description></item></channel></rss>