<?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: Calculating fields to add up to a set percentage; how do you add the % symbol</title><link>https://www.infopathdev.com:443/forums/thread/100239.aspx</link><pubDate>Mon, 24 Nov 2014 12:04:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100239</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100239.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=100239</wfw:commentRss><description>&lt;p&gt;Hi Misty,&lt;/p&gt;&lt;p&gt;Thanks for posting.&amp;nbsp;You can use some complex XPaths to do this... here are some examples:&lt;/p&gt;&lt;ul style="list-style-type:disc;direction:ltr;"&gt;&lt;li style="font-style:normal;font-weight:normal;"&gt;&lt;p style="font-style:normal;font-weight:normal;margin-top:0in;margin-bottom:10pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;Repeating
sections (example)&lt;/p&gt;&lt;ul style="list-style-type:disc;"&gt;&lt;li style="font-size:11pt;font-style:normal;font-weight:normal;"&gt;&lt;p style="font-size:11pt;font-style:normal;font-weight:normal;margin-top:0in;margin-bottom:10pt;mso-list:l0 level2 lfo1;tab-stops:list 1.0in;"&gt;Total
Percent Completed:&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;
(TotalAnsweredTest / TotalQuestionsTest) * 100&lt;/p&gt;&lt;/li&gt;&lt;li style="font-size:11pt;font-style:normal;font-weight:normal;"&gt;&lt;p style="font-size:11pt;font-style:normal;font-weight:normal;margin-top:0in;margin-bottom:10pt;mso-list:l0 level2 lfo1;tab-stops:list 1.0in;"&gt;TotalAnsweredTest:
sum(AnsweredYN)&lt;/p&gt;&lt;/li&gt;&lt;li style="font-size:11pt;font-style:normal;font-weight:normal;"&gt;&lt;p style="font-size:11pt;font-style:normal;font-weight:normal;margin-top:0in;margin-bottom:10pt;mso-list:l0 level2 lfo1;tab-stops:list 1.0in;"&gt;TotalQuestionsTest:
count(AnsweredYN)&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li style="font-size:11pt;font-style:normal;font-weight:normal;"&gt;&lt;p style="font-size:11pt;font-style:normal;font-weight:normal;margin-top:0in;margin-bottom:10pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;Independent
fields (example 2)&lt;/p&gt;&lt;ul style="list-style-type:disc;"&gt;&lt;li style="font-size:11pt;font-style:normal;font-weight:normal;"&gt;&lt;p style="font-size:11pt;font-style:normal;font-weight:normal;margin-top:0in;margin-bottom:10pt;mso-list:l0 level2 lfo1;tab-stops:list 1.0in;"&gt;Total:
&lt;br /&gt;
count(field1 | field2 | field3 | field4 | field5 | field6 | field7 | field8 |
field9 | field10)&lt;/p&gt;&lt;/li&gt;&lt;li style="font-size:11pt;font-style:normal;font-weight:normal;"&gt;&lt;p style="font-size:11pt;font-style:normal;font-weight:normal;margin-top:0in;margin-bottom:10pt;mso-list:l0 level2 lfo1;tab-stops:list 1.0in;"&gt;Percent:
&lt;br /&gt;
100 - (100 * count(field1[. = &amp;quot;&amp;quot;] | field2[. = &amp;quot;&amp;quot;] |
field3[. = &amp;quot;&amp;quot;] | field4[. = &amp;quot;&amp;quot;] | field5[. = &amp;quot;&amp;quot;]
| field6[. = &amp;quot;&amp;quot;] | field7[. = &amp;quot;&amp;quot;] | field8[. =
&amp;quot;&amp;quot;] | field9[. = &amp;quot;&amp;quot;] | field10[. = &amp;quot;&amp;quot;])) / Total&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li style="font-size:11pt;font-style:normal;font-weight:normal;"&gt;&lt;p style="font-size:11pt;font-style:normal;font-weight:normal;margin-top:0in;margin-bottom:10pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;More
advanced – use calculated values (no additional fields req’d)&lt;/p&gt;&lt;ul style="list-style-type:disc;"&gt;&lt;li style="font-size:11pt;font-style:normal;font-weight:normal;"&gt;&lt;p style="font-size:11pt;font-style:normal;font-weight:normal;margin-top:0in;margin-bottom:10pt;mso-list:l0 level2 lfo1;tab-stops:list 1.0in;"&gt;All
fields: count((//*[not(*)] | //@*)[not(name() = &amp;quot;xml:lang&amp;quot;)])&lt;/p&gt;&lt;/li&gt;&lt;li style="font-size:11pt;font-style:normal;font-weight:normal;"&gt;&lt;p style="font-size:11pt;font-style:normal;font-weight:normal;margin-top:0in;margin-bottom:10pt;mso-list:l0 level2 lfo1;tab-stops:list 1.0in;"&gt;Filled
in: count((//*[not(*)] | //@*)[not(name() = &amp;quot;xml:lang&amp;quot;)][. != &amp;#39;&amp;#39;])&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

















&lt;/font&gt;To get&amp;nbsp;the % symbol to show up,&amp;nbsp;don&amp;#39;t worry about&amp;nbsp;putting it in the field. Just&amp;nbsp;type it in after the field.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Please let us know if you have any other questions!&lt;/p&gt;&lt;p&gt;:)&amp;nbsp;&lt;/p&gt;</description></item><item><title>Calculating fields to add up to a set percentage; how do you add the % symbol</title><link>https://www.infopathdev.com:443/forums/thread/100130.aspx</link><pubDate>Tue, 18 Nov 2014 19:03:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100130</guid><dc:creator>shamisty</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100130.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=100130</wfw:commentRss><description>Ok, I know how to add the fields together to get a total, I also know how to get it to be a percentage, my question is...............

How can I make my &amp;quot;total&amp;quot; field set to 100%, or as the previous fields are being entered, that the &amp;quot;total&amp;quot; field is being calculated, but it cannot exceed 100%??? Also, how in the heck do I get the % symbol to show in my fields?

Please help!</description></item></channel></rss>