<?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: Calculating a score from question answers (yes, no or n/a)</title><link>https://www.infopathdev.com:443/forums/thread/39735.aspx</link><pubDate>Thu, 19 Mar 2009 16:15:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39735</guid><dc:creator>Alec Pojidaev</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39735.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=39735</wfw:commentRss><description>&lt;p&gt;Here is how to calculate number of the results are equal -1&lt;/p&gt;
&lt;p&gt;string-length(eval(eval(YourRepeatingGroup, &amp;#39;substring-after(../YourScorefield = -1, &amp;quot;u&amp;quot;)&amp;#39;), &amp;quot;..&amp;quot;))&lt;/p&gt;
&lt;p&gt;replacing -1 by other values will get you all range of sums.&lt;/p&gt;</description></item><item><title>Re: Calculating a score from question answers (yes, no or n/a)</title><link>https://www.infopathdev.com:443/forums/thread/39734.aspx</link><pubDate>Thu, 19 Mar 2009 16:12:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39734</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39734.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=39734</wfw:commentRss><description>&lt;p&gt;Essentially the formula would be something like this:&lt;/p&gt;
&lt;p&gt;Number of Yes answers:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;count(/my:myFields/my:questions/my:question[my:answer = 1])&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;No answers:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;count(/my:myFields/my:questions/my:question[my:answer = 0])&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;N/A answers&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;count(/my:myFields/my:questions/my:question[my:answer = -1])&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Of course, the actual formula will be different depending on the structure of your data source and what values you have assigned to Yes, No and N/A&lt;/p&gt;</description></item><item><title>Calculating a score from question answers (yes, no or n/a)</title><link>https://www.infopathdev.com:443/forums/thread/39730.aspx</link><pubDate>Thu, 19 Mar 2009 15:27:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39730</guid><dc:creator>dlgross</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39730.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=39730</wfw:commentRss><description>&lt;p&gt;We have a form with numerous questions. All of the questions have yes or no type answers but some of them are not applicable and the user should be able to identify them as such. I am currently using a option field with 3 values, 1, 0, -1 for the questions with n/a as a valid choice, but we are having problems getting the logic to sum up the results properly. For example, there are 10 questions, I need to know how many were identified as n/a, subtract this from the total, and then determine how many of the applicable questions were answered yes and how many were answered no. Any suggestions on how to write the expression to do this would be greatly appreciated.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;dean&lt;/p&gt;</description></item></channel></rss>