<?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: Change in calculation based upon option button</title><link>https://www.infopathdev.com:443/forums/thread/2690.aspx</link><pubDate>Wed, 05 Jul 2006 13:45:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2690</guid><dc:creator>kriz10gal</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2690.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2690</wfw:commentRss><description>&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;i&gt;Originally posted by Matt Faus&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Yes, you should be able to do this with a simple XSL statement. Assuming your schema looks like this:&lt;br /&gt;&lt;br /&gt;Group&lt;br /&gt;--LineItem (repeating)&lt;br /&gt;----CreditCard&lt;br /&gt;----Amount&lt;br /&gt;&lt;br /&gt;Your calculated field will be this:&lt;br /&gt;sum( LineItem/Amount[../CreditCard = "no"] )&lt;br /&gt;&lt;br /&gt;To do this in the Designer, &lt;br /&gt;1. double-click the field that you wish to calculate the total and click the Function button. &lt;br /&gt;2. Click the Insert Function button, select sum, and then click OK&lt;br /&gt;3. Double-click the link to insert a field, select Amount from the data source tree, and then click Filter Data&lt;br /&gt;4. In the filter data, select CreditCard from the first drop-down, "is equal to", from the second drop-down, and then "no" from the third drop-down.&lt;br /&gt;5. Click OK until you are back to the canvas, and then click Preview to try it out.&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;&lt;br /&gt;Nevermind! I originally had a problem, but I fixed it. My True/False values are 1 and 2, so the "no" didn't work for me.&lt;br /&gt;&lt;br /&gt;Thanks so much!&lt;br /&gt;&lt;br /&gt;P.S. How'd you get so good with InfoPath?</description></item><item><title>Re: Change in calculation based upon option button</title><link>https://www.infopathdev.com:443/forums/thread/2689.aspx</link><pubDate>Sat, 01 Jul 2006 00:08:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2689</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2689.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2689</wfw:commentRss><description>Yes, you should be able to do this with a simple XSL statement. Assuming your schema looks like this:&lt;br /&gt;&lt;br /&gt;Group&lt;br /&gt;--LineItem (repeating)&lt;br /&gt;----CreditCard&lt;br /&gt;----Amount&lt;br /&gt;&lt;br /&gt;Your calculated field will be this:&lt;br /&gt;sum( LineItem/Amount[../CreditCard = "no"] )&lt;br /&gt;&lt;br /&gt;To do this in the Designer, &lt;br /&gt;1. double-click the field that you wish to calculate the total and click the Function button. &lt;br /&gt;2. Click the Insert Function button, select sum, and then click OK&lt;br /&gt;3. Double-click the link to insert a field, select Amount from the data source tree, and then click Filter Data&lt;br /&gt;4. In the filter data, select CreditCard from the first drop-down, "is equal to", from the second drop-down, and then "no" from the third drop-down.&lt;br /&gt;5. Click OK until you are back to the canvas, and then click Preview to try it out.</description></item><item><title>Change in calculation based upon option button</title><link>https://www.infopathdev.com:443/forums/thread/1394.aspx</link><pubDate>Fri, 30 Jun 2006 18:47:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1394</guid><dc:creator>kriz10gal</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1394.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1394</wfw:commentRss><description>A choice on an expense report I am working on asks if the expense was charged to a credit card. If the expense was charged to the credit card, it isn't calculated into the weekly expense report, but simply written there for record. Currently, I have an "Expenses charged directly to Option Care Corporate?" choice in a repeating table with the other fields. It is a Yes or No (1 or 2) option. Is there a way for me to tell my "Total Expense" calculated field to NOT add the number if the option button "Yes" is chosen (but if otherwise, continue with the calculation)?</description></item></channel></rss>