<?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: Calculate Percentages for total</title><link>https://www.infopathdev.com:443/forums/thread/55095.aspx</link><pubDate>Thu, 20 May 2010 05:39:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55095</guid><dc:creator>JonHart</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55095.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=55095</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi&lt;/p&gt;&lt;p&gt;&amp;nbsp;I must have figured out the [. = &amp;quot;yes&amp;quot;] prob about 1 minute before you posted. have finally come right. Thanks SOOO much for your help@!!!!@@#@#! &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Calculate Percentages for total</title><link>https://www.infopathdev.com:443/forums/thread/55053.aspx</link><pubDate>Wed, 19 May 2010 15:09:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55053</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55053.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=55053</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Please try this:&lt;/p&gt;&lt;p&gt;&amp;nbsp;100 * count((tq2.1 | tq2.2 | tq2.3)[. = &amp;quot;Yes&amp;quot;]) / count((tq2.1 | tq2.2 | 
tq2.3)[. != &amp;#39;N/A&amp;#39;]) &lt;/p&gt;</description></item><item><title>Re: Calculate Percentages for total</title><link>https://www.infopathdev.com:443/forums/thread/55045.aspx</link><pubDate>Wed, 19 May 2010 13:20:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55045</guid><dc:creator>JonHart</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55045.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=55045</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Ok i am now using the following but getting a returned value of 97.....&lt;/p&gt;&lt;p&gt;100 * count((tq2.1 | tq2.2 | tq2.3)[&amp;quot;Yes&amp;quot;]) / count(tq2.1 | tq2.2 | tq2.3) - (count((tq2.1 | tq2.2 | tq2.3)[&amp;quot;N/A&amp;quot;]))&lt;/p&gt;&lt;p&gt;I have tried&amp;nbsp; &lt;/p&gt;&lt;p&gt;100 * count((tq2.1 | tq2.2 | tq2.3)[&amp;quot;Yes&amp;quot;]) / (count(tq2.1 | tq2.2 | tq2.3) - count((tq2.1 | tq2.2 | tq2.3)[&amp;quot;N/A&amp;quot;]))&lt;/p&gt;&lt;p&gt;which gives me &amp;quot;Infinite&amp;quot; as the value...&lt;/p&gt;&lt;p&gt;&amp;nbsp;Both of these formula&amp;#39;s dont change when answering the questions...&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Calculate Percentages for total</title><link>https://www.infopathdev.com:443/forums/thread/55011.aspx</link><pubDate>Wed, 19 May 2010 05:54:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55011</guid><dc:creator>JonHart</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55011.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=55011</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;When I use it it joins the [Answer = Yes] the the fields before it.&lt;/p&gt;&lt;p&gt;100 * count((tq2.1 | tq2.2 | tq2.3)[Answer = &amp;quot;Yes&amp;quot;]) / count((tq2.1 | tq2.2 | tq2.3)[Answer != &amp;quot;N/A&amp;quot;])&lt;/p&gt;&lt;p&gt;&amp;nbsp;I get the following error.&lt;/p&gt;&lt;p&gt;&amp;quot;../my:tq2.1/Answer&amp;quot; does not point to a valid location path of a field or group. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Calculate Percentages for total</title><link>https://www.infopathdev.com:443/forums/thread/54981.aspx</link><pubDate>Tue, 18 May 2010 15:46:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54981</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54981.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=54981</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Please try this:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;100 * count((q2.1 | q2.2 | q2.3)[Answer = &amp;quot;Yes&amp;quot;]) / count((q2.1 | q2.2 | q2.3)[Answer != &amp;#39;N/A&amp;#39;])&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Re: Calculate Percentages for total</title><link>https://www.infopathdev.com:443/forums/thread/54976.aspx</link><pubDate>Tue, 18 May 2010 12:20:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54976</guid><dc:creator>JonHart</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54976.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=54976</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I want to get a % total for a series of questions which i have used 3 radio buttons for each question, Yes, No and N/A. I need it to calculate the % on all questions minus the ones marked N/A.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Calculate Percentages for total</title><link>https://www.infopathdev.com:443/forums/thread/54975.aspx</link><pubDate>Tue, 18 May 2010 12:12:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54975</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54975.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=54975</wfw:commentRss><description>&lt;p&gt;what exactlyy do you want&lt;/p&gt;</description></item><item><title>Re: Calculate Percentages for total</title><link>https://www.infopathdev.com:443/forums/thread/54973.aspx</link><pubDate>Tue, 18 May 2010 11:15:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54973</guid><dc:creator>JonHart</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54973.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=54973</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Ok i have used the following expression but not liking it... &lt;br /&gt;&lt;/p&gt;&lt;p&gt;100 * count(q2.1 + q2.2 + q2.3 [Answer = &amp;quot;Yes&amp;quot;]) / (count(q2.1 + q2.2 + q2.3)) - (count(q2.1 + q2.2 + q2.3 [Answer = N/A]))&lt;/p&gt;&lt;p&gt;&amp;nbsp;Where am I going wrong?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Calculate Percentages for total</title><link>https://www.infopathdev.com:443/forums/thread/54969.aspx</link><pubDate>Tue, 18 May 2010 10:48:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54969</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54969.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=54969</wfw:commentRss><description>&lt;p&gt;you can try &lt;/p&gt;
&lt;p&gt;100 * (fiel1, fiel2, ....fieldn) / number of fields&amp;nbsp;&lt;/p&gt;
&lt;p&gt;eg: 100 * (field3 + field4 + field5) / 3&lt;/p&gt;</description></item><item><title>Re: Calculate Percentages for total</title><link>https://www.infopathdev.com:443/forums/thread/54966.aspx</link><pubDate>Tue, 18 May 2010 08:07:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54966</guid><dc:creator>JonHart</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54966.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=54966</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Perfect thanks!&lt;/p&gt;&lt;p&gt;&amp;nbsp;Just one thing, in your string, you used one &amp;quot;Repeating Field&amp;quot;, how would I go about adding multiple fields? I have a field for each question, I.e. Q1.1, Q2.2, Q2.3 etc. What would I use to separate the fields?&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks for your assistance with this!&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Calculate Percentages for total</title><link>https://www.infopathdev.com:443/forums/thread/54945.aspx</link><pubDate>Mon, 17 May 2010 14:56:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54945</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54945.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=54945</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Yes, you would use the formula as the default value for the field where you want to store the value, or you can just use the formula in an expression box if you only want to display the value and not store it in the form&amp;#39;s data.&lt;/p&gt;&lt;p&gt;&amp;nbsp;You can use the &lt;b&gt;Select Field... &lt;/b&gt;button and its &lt;b&gt;Filter&lt;/b&gt; functionality to set up the formula with the correct paths and field names.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Calculate Percentages for total</title><link>https://www.infopathdev.com:443/forums/thread/54944.aspx</link><pubDate>Mon, 17 May 2010 14:43:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54944</guid><dc:creator>JonHart</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54944.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=54944</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi&lt;/p&gt;&lt;p&gt;&amp;nbsp;Defiantly looks right but how would I go about using it? Would I just use it as the default value in the total field? Do i replace &amp;quot;RepeatingField&amp;quot; with the fields that I am using? Please excuse my ignorance but only ever worked with very basic forms. Thanks again!!&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Calculate Percentages for total</title><link>https://www.infopathdev.com:443/forums/thread/54943.aspx</link><pubDate>Mon, 17 May 2010 14:27:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54943</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54943.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=54943</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Might it be that the formula you want is:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;100 * count(RepeatingField[Answer = &amp;#39;yes&amp;#39;]) div (count(RepeatingField) - count(RepeatingField[Answer = &amp;#39;N/A&amp;#39;])) &lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Calculate Percentages for total</title><link>https://www.infopathdev.com:443/forums/thread/54942.aspx</link><pubDate>Mon, 17 May 2010 14:08:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54942</guid><dc:creator>JonHart</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54942.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=54942</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi there&lt;/p&gt;&lt;p&gt;&amp;nbsp;Sorry if this has been listed before but I could not find it anywhere. I have a form with 20 questions on it with &amp;quot;Yes&amp;quot; &amp;quot;No&amp;quot; and &amp;quot;N/A&amp;quot; as radio button answers. I have a total field which will give a % score. However, if a person marks a question as N/A the new total question for the % score changes to &amp;quot;Total questions minus number of N/A&amp;#39;s selected&amp;quot;. It&amp;#39;s allot harder to explain typing as I am figuring out now... But hopefully someone understands and can give me an idea on how to go about this. Many many thanks!&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>