<?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: About Sum function</title><link>https://www.infopathdev.com:443/forums/thread/4216.aspx</link><pubDate>Mon, 12 Mar 2007 15:08:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4216</guid><dc:creator>alea</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4216.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4216</wfw:commentRss><description>Hi, Madhuri, &lt;br /&gt;&lt;br /&gt;Thank you very much for help. It did what I want. &lt;br /&gt;&lt;br /&gt;Alea</description></item><item><title>Re: About Sum function</title><link>https://www.infopathdev.com:443/forums/thread/4215.aspx</link><pubDate>Mon, 12 Mar 2007 07:34:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4215</guid><dc:creator>madhuri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4215.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4215</wfw:commentRss><description>Hi alea&lt;br /&gt;&lt;br /&gt;You cannot do Sum function on calculated value, Sum function is used for calculation on fields. You can do in the following way&lt;br /&gt;&lt;br /&gt;Field1, Field2, Field3, Field4, Field5, Field6, Field7&lt;br /&gt;&lt;br /&gt;Field3=Field1*Field2 &lt;br /&gt;&lt;br /&gt;Field4=Field5*Field6&lt;br /&gt;&lt;br /&gt;Field7= Sum(Field3)+sum(Field4)</description></item><item><title>About Sum function</title><link>https://www.infopathdev.com:443/forums/thread/1904.aspx</link><pubDate>Fri, 09 Mar 2007 21:08:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1904</guid><dc:creator>alea</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1904.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1904</wfw:commentRss><description>Hi, I am trying to calculate final ratings. and What I wanted is something like sum(rating * percentFocus) + sum(rating * percentFocus) + sum(rating * percentFocus) + sum(rating * percentFocus) + sum(superRating * percentFocus) and I got the error "Argument 1 must return a node-set.". &lt;br /&gt;&lt;br /&gt;I don't know what I did wrong. Would you please help me out? I appreciate any help. &lt;br /&gt;&lt;br /&gt;The following is the xpath for the fomular:&lt;br /&gt;sum(../../my:core/my:customerFocus/my:managerEvaluation/my:rating * ../../my:core/my:customerFocus/my:percentFocus) + sum(../../my:core/my:collaboration/my:managerEvaluation/my:rating * ../../my:core/my:collaboration/my:percentFocus) + sum(../../my:core/my:leadership/my:managerEvaluation/my:rating * ../../my:core/my:leadership/my:percentFocus) + sum(../../my:results/my:result/my:managerEvaluation/my:rating) + sum(../../perf:currentObjectives/perf:objective/my:supervisor/my:superRating * ../../perf:currentObjectives/perf:objective/perf:percentFocus)</description></item></channel></rss>