<?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: Need function to sum Option button totals</title><link>https://www.infopathdev.com:443/forums/thread/97787.aspx</link><pubDate>Thu, 05 Jun 2014 02:38:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97787</guid><dc:creator>donstephen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97787.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=97787</wfw:commentRss><description>&lt;p&gt;Hi Matt,&lt;/p&gt;&lt;p&gt;I understand that you are looking for a formula which adds up the sum of items having a certain type. If you are using a repeating table, then you could use a formula such as:&lt;br /&gt;&lt;br /&gt;sum(field1[field2 = &amp;quot;Type1&amp;quot;])&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;i&gt;where field1 is the item and field2 contains the type of item. To add this condition, click the filter button after selecting the desired field, in this case field1, and then select field2 for the frist drop down, select the condition (=), and enter the value desired.&lt;/i&gt;&lt;/p&gt;&lt;p&gt;But if you are working with non-repeating fields, then you should be able to add&amp;nbsp;fields&amp;nbsp;using a formula such as:&lt;/p&gt;&lt;p&gt;field1 + field2 + field3&lt;/p&gt;&lt;p&gt;Hope this helps.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Need function to sum Option button totals</title><link>https://www.infopathdev.com:443/forums/thread/97784.aspx</link><pubDate>Wed, 04 Jun 2014 20:11:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97784</guid><dc:creator>MattT1</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97784.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=97784</wfw:commentRss><description>I&amp;#39;m building a form with fields MaterialName, MaterialCost, and 4 option buttons to indicate the MaterialFunding source (MaterialFunding Type1, Type2, Type3 and Type4).  I want to calculate the total of each of the types of funding.   New to Infopath, I thought this would be an easy SumIf statement, but I&amp;#39;m learning there is no such thing as an Xpath IF statement. If I could use an IF statement this is what it would look like:
=SumIF(MaterialFunding, 3,MaterialCost).

Can anyone help me write a function that will give me a total for each option. Thanks</description></item></channel></rss>