<?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: Count Unique Values in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/102911.aspx</link><pubDate>Tue, 23 Jun 2015 19:22:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102911</guid><dc:creator>SFC_Simon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102911.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=102911</wfw:commentRss><description>&lt;p&gt;Yeah, the requirements always change right before you get it.&amp;nbsp; But now&amp;nbsp;i&amp;#39;ve got&amp;nbsp;this&amp;nbsp;problem on the brain&amp;nbsp;and so&amp;nbsp;won&amp;#39;t stop till I&amp;#39;ve solved it.&lt;/p&gt;&lt;p&gt;Then again, isn&amp;#39;t that the way it always goes for us, lol.&lt;/p&gt;&lt;p&gt;Thanks again&lt;/p&gt;</description></item><item><title>Re: Count Unique Values in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/102910.aspx</link><pubDate>Tue, 23 Jun 2015 19:16:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102910</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102910.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=102910</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I&amp;#39;m happy this thread &amp;amp; the forum in general have been helpful to you - how funny that the requirements changed right when you were working out the solution - isn&amp;#39;t that the way it always goes? :)&lt;/p&gt;&lt;p&gt;Have a great day!&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Count Unique Values in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/102909.aspx</link><pubDate>Tue, 23 Jun 2015 19:12:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102909</guid><dc:creator>SFC_Simon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102909.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=102909</wfw:commentRss><description>&lt;p&gt;I will read though those links to develop a better grasp on what I am doing.&amp;nbsp; There is only so much a person can learn from google, Ctrl+C, Ctrl+v, lol.&amp;nbsp; While&amp;nbsp;I have learned a lot from that method, I have learned more though this single forum entry.&lt;/p&gt;&lt;p&gt;I will also look over the template and attempt to repurpose what it contains.&amp;nbsp;&amp;nbsp;I was just told I no longer need to track the names in a unique manner and so no longer need this soultion.&amp;nbsp; I litterally just got out of that meeting with the customer, lol.&lt;/p&gt;&lt;p&gt;But I will certainly read, preview, test&amp;nbsp;and&amp;nbsp;make notes.&lt;/p&gt;&lt;p&gt;The best part about&amp;nbsp;your support is that I have already gotten so many of my answers by reading posts you replied in.&amp;nbsp; When I saw your face in the reply line to my post.&amp;nbsp; I thought to myself &amp;quot;Jack Pot&amp;quot; lol.&lt;br /&gt;I truly appreciate all of your support on this and on the many many many other posts I have read your replies on.&lt;/p&gt;&lt;p&gt;Thank you&lt;/p&gt;</description></item><item><title>Re: Count Unique Values in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/102908.aspx</link><pubDate>Tue, 23 Jun 2015 18:57:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102908</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102908.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=102908</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Well, actually my expression uses a relative path after the preceding-sibling::. &lt;/p&gt;&lt;p&gt;&lt;a href="http://www.w3schools.com/xpath/xpath_axes.asp"&gt;http://www.w3schools.com/xpath/xpath_axes.asp&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://stackoverflow.com/questions/12347412/concept-xml-xlst-preceding-sibling-and-ancestor"&gt;http://stackoverflow.com/questions/12347412/concept-xml-xlst-preceding-sibling-and-ancestor&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The * selects all elements.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Current is the current element. Generally useful when your current element is in a repeating structure - like you have conditional formatting hide a row when some other value is equal to the current row&amp;#39;s ID....&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.w3schools.com/xsl/func_current.asp"&gt;http://www.w3schools.com/xsl/func_current.asp&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://stackoverflow.com/questions/1022345/current-node-vs-context-node-in-xslt-xpath"&gt;http://stackoverflow.com/questions/1022345/current-node-vs-context-node-in-xslt-xpath&lt;/a&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Count Unique Values in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/102907.aspx</link><pubDate>Tue, 23 Jun 2015 18:45:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102907</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102907.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=102907</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Here&amp;#39;s a sample that shows this - download the linked file, right click the local copy, select design, preview, and change values, insert items, etc.&lt;/p&gt;</description></item><item><title>Re: Count Unique Values in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/102906.aspx</link><pubDate>Tue, 23 Jun 2015 18:36:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102906</guid><dc:creator>SFC_Simon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102906.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=102906</wfw:commentRss><description>&lt;p&gt;Questions on a side note:&lt;/p&gt;&lt;p&gt;what does preceding-sibling::* mean vs the full path after :: ?&lt;/p&gt;&lt;p&gt;&amp;nbsp;what does current() mean and how exactly can that be used?&lt;/p&gt;</description></item><item><title>Re: Count Unique Values in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/102905.aspx</link><pubDate>Tue, 23 Jun 2015 18:34:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102905</guid><dc:creator>SFC_Simon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102905.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=102905</wfw:commentRss><description>&lt;p&gt;Well that works differently for sure, but still not accurate.&amp;nbsp; That simply returns all names regardless of the preceding-siblings.&lt;/p&gt;</description></item><item><title>Re: Count Unique Values in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/102903.aspx</link><pubDate>Tue, 23 Jun 2015 17:54:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102903</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102903.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=102903</wfw:commentRss><description>&lt;p&gt;Sorry, I think we need &amp;#39;not&amp;#39; instead of &amp;#39;!=&amp;#39;&lt;/p&gt;&lt;p&gt;&amp;nbsp;count(xdXDocument:GetDOM(&amp;quot;BuildReport&amp;quot;)/dfs:myFields/dfs:dataFields/ns3:BuildReportResponse/ns3:BuildReportResult/ns3:Reports/ns3:CReportBuilder/ns3:Participations/ns3:CReportBuilderParticipation/ns3:Participant_Name[not(. = ../preceding-sibling::ns3:CReportBuilderParticipation/ns3:Participant_Name) and . != &amp;quot;&amp;quot;]) &lt;/p&gt;</description></item><item><title>Re: Count Unique Values in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/102902.aspx</link><pubDate>Tue, 23 Jun 2015 17:34:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102902</guid><dc:creator>SFC_Simon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102902.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=102902</wfw:commentRss><description>&lt;p&gt;Unfortunately that returns the same number as:&lt;/p&gt;&lt;p&gt;count(xdXDocument:GetDOM(&amp;quot;BuildReport&amp;quot;)/dfs:myFields/dfs:dataFields/ns3:BuildReportResponse/ns3:BuildReportResult/ns3:Reports/ns3:CReportBuilder/ns3:Participations/ns3:CReportBuilderParticipation/ns3:Participant_Name[(../preceding-sibling::* != xdXDocument:GetDOM(&amp;quot;BuildReport&amp;quot;)/dfs:myFields/dfs:dataFields/ns3:BuildReportResponse/ns3:BuildReportResult/ns3:Reports/ns3:CReportBuilder/ns3:Participations/ns3:CReportBuilderParticipation/ns3:Participant_Name) and (. != &amp;quot;&amp;quot;)])&lt;/p&gt;&lt;p&gt;When you look it over out of XPath:&lt;/p&gt;&lt;p&gt;count(Participant_Name[(preceding-sibling::* != Participant_Name) and (. != &amp;quot;&amp;quot;)])&lt;br /&gt;or&lt;br /&gt;count(Participant_Name[. != preceding-sibling::CReportBuilderParticipation/Participant_Name and . != &amp;quot;&amp;quot;])&lt;/p&gt;&lt;p&gt;They both seem to make sense.&amp;nbsp; It should be returning a count of values that are unique.&lt;/p&gt;&lt;p&gt;If I run a report for 3 June.&amp;nbsp; The Table returns 6 names and none of the names are repeated.&amp;nbsp; However both my formula and the one you suggested returns a count of 3.&amp;nbsp; That&amp;#39;s where I cant make sense of it.&lt;/p&gt;</description></item><item><title>Re: Count Unique Values in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/102901.aspx</link><pubDate>Tue, 23 Jun 2015 17:22:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102901</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102901.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=102901</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Maybe try this?&lt;/p&gt;&lt;p&gt;count(xdXDocument:GetDOM(&amp;quot;BuildReport&amp;quot;)/dfs:myFields/dfs:dataFields/ns3:BuildReportResponse/ns3:BuildReportResult/ns3:Reports/ns3:CReportBuilder/ns3:Participations/ns3:CReportBuilderParticipation/ns3:Participant_Name[. != ../preceding-sibling::ns3:CReportBuilderParticipation/ns3:Participant_Name and . != &amp;quot;&amp;quot;])&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Count Unique Values in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/102900.aspx</link><pubDate>Tue, 23 Jun 2015 16:54:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102900</guid><dc:creator>SFC_Simon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102900.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=102900</wfw:commentRss><description>&lt;p&gt;XPath Participant Name:&lt;/p&gt;&lt;p&gt;/dfs:myFields/dfs:dataFields/ns3:BuildReportResponse/ns3:BuildReportResult/ns3:Reports/ns3:CReportBuilder/ns3:Participations/ns3:CReportBuilderParticipation/ns3:Participant_Name&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;p&gt;Also here is the current formula that I am trying to use:&lt;/p&gt;&lt;p&gt;count(xdXDocument:GetDOM(&amp;quot;BuildReport&amp;quot;)/dfs:myFields/dfs:dataFields/ns3:BuildReportResponse/ns3:BuildReportResult/ns3:Reports/ns3:CReportBuilder/ns3:Participations/ns3:CReportBuilderParticipation/ns3:Participant_Name[(../preceding-sibling::* != xdXDocument:GetDOM(&amp;quot;BuildReport&amp;quot;)/dfs:myFields/dfs:dataFields/ns3:BuildReportResponse/ns3:BuildReportResult/ns3:Reports/ns3:CReportBuilder/ns3:Participations/ns3:CReportBuilderParticipation/ns3:Participant_Name) and (. != &amp;quot;&amp;quot;)])&lt;/p&gt;&lt;p&gt;Thank you.&lt;/p&gt;</description></item><item><title>Re: Count Unique Values in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/102895.aspx</link><pubDate>Mon, 22 Jun 2015 22:55:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102895</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102895.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=102895</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;What is the full XPath to Participant_Name? You can right click the node in the data source task pane and select copy XPath - I think I can help you with your formula.&lt;/p&gt;</description></item><item><title>Count Unique Values in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/102886.aspx</link><pubDate>Mon, 22 Jun 2015 16:07:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:102886</guid><dc:creator>SFC_Simon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/102886.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=102886</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.  I have had our programmers create a WebService that allows me to query said Data Base with a Start and End Date.  The WebService returns all of the information that falls within that date range.&lt;/p&gt;&lt;p&gt;I have displayed the repeating table from the Data Connection on the Form and it is returning all of the information that falls within that date range when I set the dates and query the Data Connection.&lt;/p&gt;&lt;p&gt;I now need to create a field which displays a Count for all of the participants who have performed a mission within that date range.  However when a participant has completed multiple missions within that data range.  I do not want to count them multiple times.  I only want to count that particular &lt;strong&gt;Participant_Name&lt;/strong&gt; once.  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 that I do not have the ability to create new fields within.  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.  I would appreciate any advice.&lt;/p&gt;&lt;p&gt;Thank you&lt;/p&gt;</description></item></channel></rss>