<?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: XPath: Count distinct values in repeating table</title><link>https://www.infopathdev.com:443/forums/thread/24839.aspx</link><pubDate>Mon, 03 Dec 2007 08:56:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24839</guid><dc:creator>zaphi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24839.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=24839</wfw:commentRss><description>&lt;p&gt;Hi Chris,&lt;br /&gt;
Your solution is very good. Thank you very much!&lt;br /&gt;
&lt;br /&gt;

here my sample: &lt;br /&gt;
count(../my:gruppe1/my:gruppe2/my:feld2[not(preceding::my:gruppe2/my:feld2 = .)])&lt;br /&gt;
&lt;br /&gt;
Best regards&lt;br /&gt;
Philippe

&lt;/p&gt;</description></item><item><title>Re: XPath: Count distinct values in repeating table</title><link>https://www.infopathdev.com:443/forums/thread/24825.aspx</link><pubDate>Fri, 30 Nov 2007 22:26:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24825</guid><dc:creator>anotherchrisberry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24825.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=24825</wfw:commentRss><description>&lt;p&gt;you can use a simple xpath like this:&lt;/p&gt;&lt;p&gt;count(row[not(preceding::row = .)])&lt;/p&gt;&lt;p&gt;that will give you the count of distinct values.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: XPath: Count distinct values in repeating table</title><link>https://www.infopathdev.com:443/forums/thread/24787.aspx</link><pubDate>Thu, 29 Nov 2007 08:34:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24787</guid><dc:creator>Karsten Brocksieper</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24787.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=24787</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;even if the following article by Tim Pash is not regarding a repeated table --- but maybe the technique can be helpful for you to accomplish your task...&lt;/p&gt;
&lt;p&gt;Please have a look at: &lt;a href="http://blogs.msdn.com/timpash/archive/2005/11/23/XPATH-Filtering-Distinct-Values.aspx"&gt;http://blogs.msdn.com/timpash/archive/2005/11/23/XPATH-Filtering-Distinct-Values.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>XPath: Count distinct values in repeating table</title><link>https://www.infopathdev.com:443/forums/thread/24785.aspx</link><pubDate>Thu, 29 Nov 2007 07:50:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24785</guid><dc:creator>zaphi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24785.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=24785</wfw:commentRss><description>&lt;p&gt;Hi&lt;br /&gt;I need to count the distinct values of a field in a repeating table, which contains the name of a person&lt;br /&gt;


Example: &lt;br /&gt;

row1: Name = &amp;quot;Smith&amp;quot;&lt;br /&gt;
row2: Name = &amp;quot;Bird&amp;quot;&lt;br /&gt;
row3: Name = &amp;quot;Smith&amp;quot;&lt;br /&gt;
row4: Name = &amp;quot;Walker&amp;quot;&lt;br /&gt;
&lt;br /&gt;

count of distinct values: 3 &lt;br /&gt;
&lt;br /&gt;

Can anybody tell me, how I can manage that with XPath.&lt;br /&gt;

Thanks a lot.&lt;br /&gt;

Best regards.&lt;br /&gt;

Philippe



&lt;/p&gt;</description></item></channel></rss>