<?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>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Count Repeating Field from Data Connection without duplicates</title><link>https://www.infopathdev.com:443/forums/thread/102873.aspx</link><pubDate>Thu, 18 Jun 2015 20:18:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102873</guid><dc:creator>SFC_Simon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102873.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=102873</wfw:commentRss><description>&lt;p&gt;Hello all,&lt;/p&gt;&lt;p&gt;I have been asked to develop an InfoPath Form that displays a report based on information that is housed in an Access Data Base.&amp;nbsp; I have had our programmers create a WebService that allows me to query said Data Base with a Start and End Date.&amp;nbsp; The WebService returns all of the information that falls within that date range.&lt;/p&gt;&lt;p&gt;I have displayed the repeating&amp;nbsp;table from the&amp;nbsp;Data Connection on the Form and it is returning&amp;nbsp;all of the information that falls within that date range&amp;nbsp;when&amp;nbsp;I set the dates and query the&amp;nbsp;Data Connection.&lt;/p&gt;&lt;p&gt;I&amp;nbsp;now need to&amp;nbsp;create a field which displays a Count for all of the participants who have performed a mission within that date range.&amp;nbsp; However when a participant has completed multiple missions within that data range.&amp;nbsp; I do not want to count them multiple times.&amp;nbsp; I only want to count that particular &lt;strong&gt;Participant_Name&lt;/strong&gt; once.&amp;nbsp; Because this report only cares about how many different people were asked to participate in missions between that date range.&lt;br /&gt;&lt;br /&gt;So what I will need is to be told how to count only unique items within a repeating table from a Data Connection&amp;nbsp;that I do not have the ability to create new fields within.&amp;nbsp; I have tried: count(&lt;strong&gt;Participant_Name&lt;/strong&gt;[preceding-sibling::* != &lt;strong&gt;Participant_Name&lt;/strong&gt;]) but that does not return the correct count.&lt;/p&gt;&lt;p&gt;I have spent several days with googe, try, fail and so am now onto the forums, lol.&amp;nbsp; I would appreciate any advice.&lt;/p&gt;&lt;p&gt;Thank you&lt;/p&gt;</description></item></channel></rss>