<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Filter a repeating table on a date range using rules and filters</title><link>https://www.infopathdev.com:443/forums/thread/54562.aspx</link><pubDate>Wed, 05 May 2010 20:30:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54562</guid><dc:creator>Visfire</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54562.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=54562</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;hello, would it be possible to elaborate on the structure of the function referenced above for averaging the filtered results? I&amp;#39;m in the same situation where I&amp;#39;ve got the date range setup as specified, works great - but have multiple counts and %&amp;#39;s that need to be averaged out - as of now it&amp;#39;s just giving the cumulative figures.&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;here&amp;#39;s what I have for an average function on the expression box&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;xdMath:Avg(dfs:dataFields/d:Campaigns/@Email_attempts[msxsl:string-compare(dfs:dataFields/d:Campaigns/@Date_Sent, startDate) &amp;gt;= 0 and msxsl:string-compare(dfs:dataFields/d:Campaigns/@Date_Sent, endDate) &amp;lt;= 0]) &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Filter a repeating table on a date range using rules and filters</title><link>https://www.infopathdev.com:443/forums/thread/46789.aspx</link><pubDate>Wed, 09 Sep 2009 15:26:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46789</guid><dc:creator>RhysAZ</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46789.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=46789</wfw:commentRss><description>&lt;p&gt;Hi Jimmy- I figured it out. What I&amp;nbsp;did was make an expression box in the footer, under the column I wanted to sum or average. The expression I wrote to sum my TotalErrors field in my filtered repeating table came out as:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;sum(@TotalErrors[msxsl:string-compare(@IndexedDate, startDate) &amp;gt;= 0 and msxsl:string-compare(@IndexedDate, endDate) &amp;lt;= 0])&lt;/p&gt;
&lt;p&gt;Basically, I filtered the TotalErrors field in the expression box as:&lt;/p&gt;
&lt;p&gt;IndexedDate is &amp;gt;= startDate AND&lt;br /&gt;IndexedDate is &amp;lt;= endDate&lt;/p&gt;
&lt;p&gt;This worked for all the other fields I wanted to sum or average.&lt;/p&gt;
&lt;p&gt;Thanks for your help!&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Filter a repeating table on a date range using rules and filters</title><link>https://www.infopathdev.com:443/forums/thread/46746.aspx</link><pubDate>Tue, 08 Sep 2009 22:35:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46746</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46746.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=46746</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Could you also provide a screenshot of your data source?&amp;nbsp; Sorry for not asking the first time.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Filter a repeating table on a date range using rules and filters</title><link>https://www.infopathdev.com:443/forums/thread/46745.aspx</link><pubDate>Tue, 08 Sep 2009 21:23:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46745</guid><dc:creator>RhysAZ</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46745.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=46745</wfw:commentRss><description>&lt;p&gt;Hi Jimmy. There are two filters on the repeating table:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The expression&lt;/p&gt;
&lt;p&gt;msxsl:string-compare(concat(substring(@IndexedDate, 1, 4), substring(@IndexedDate, 6, 2), substring(@IndexedDate, 9, 2)), concat(substring(../../my:startDate, 1, 4), substring(../../my:startDate, 6, 2), substring(../../my:startDate, 9, 2))) &amp;gt;= 0&amp;nbsp;&amp;nbsp;&amp;nbsp; AND&lt;/p&gt;
&lt;p&gt;msxsl:string-compare(concat(substring(@IndexedDate, 1, 4), substring(@IndexedDate, 6, 2), substring(@IndexedDate, 9, 2)), concat(substring(../../my:endDate, 1, 4), substring(../../my:endDate, 6, 2), substring(../../my:endDate, 9, 2))) &amp;lt;= 0&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I am using the date pickers startDate and endDate from the hyperlinked procedure&amp;nbsp;above, to&amp;nbsp;filter my repeating table data, based&amp;nbsp;on the IndexedDate field of my source query.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As for the sums, I am summing&amp;nbsp;the columns &amp;quot;Rcvd in Review&amp;quot;, &amp;quot;Total Errors&amp;quot;, etc. I wrote them as sum(@RcvdInReview), sum(@TotalErrors)&amp;nbsp; etc.&lt;/p&gt;</description></item><item><title>Re: Filter a repeating table on a date range using rules and filters</title><link>https://www.infopathdev.com:443/forums/thread/46739.aspx</link><pubDate>Tue, 08 Sep 2009 20:02:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46739</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46739.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=46739</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Could you show us the sum expression you have so far, and the exact filter expressions that you are using?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Filter a repeating table on a date range using rules and filters</title><link>https://www.infopathdev.com:443/forums/thread/46733.aspx</link><pubDate>Tue, 08 Sep 2009 16:00:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46733</guid><dc:creator>RhysAZ</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46733.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=46733</wfw:commentRss><description>&lt;p&gt;Hello all- I was hoping someone could help me with this. S.Y.M. Wong-A-Ton wrote a great article explaining how to Filter a repeating table on a date range using rules and filters. &lt;a href="http://www.bizsupportonline.net/infopath2003/filter-repeating-table-date-range-rules.htm"&gt;http://www.bizsupportonline.net/infopath2003/filter-repeating-table-date-range-rules.htm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Unfortunately, I have not found a way to contact her. I followed her instructions and they work fine. However, once the records are filtered, I am unable to correctly sum&amp;nbsp;my columns, using an expression box in the footer. When I try to sum the columns, it sums all the records from the query. I would like to sum only the filtered (displayed) records.&lt;/p&gt;
&lt;p&gt;Any suggestions would be appreciated. Thanks.&amp;nbsp; RhysAZ&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>