<?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 from a secondary source (sharepoint)</title><link>https://www.infopathdev.com:443/forums/thread/85043.aspx</link><pubDate>Tue, 04 Dec 2012 05:49:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85043</guid><dc:creator>toren78</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85043.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=85043</wfw:commentRss><description>&lt;p&gt;Jimmy,&lt;/p&gt;&lt;p&gt;Imagine the entire Internet giving you a standing ovation right now,&lt;/p&gt;&lt;p&gt;It worked!&lt;/p&gt;&lt;p&gt;Thank you,&lt;/p&gt;&lt;p&gt;Oren&lt;/p&gt;</description></item><item><title>Re: Count unique values from a secondary source (sharepoint)</title><link>https://www.infopathdev.com:443/forums/thread/85027.aspx</link><pubDate>Mon, 03 Dec 2012 16:54:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85027</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85027.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=85027</wfw:commentRss><description>&lt;p&gt;I see a potential issue in the formula.&amp;nbsp; Please try this:&lt;/p&gt;&lt;p&gt;count(xdXDocument:GetDom(&amp;quot;Meetings&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:meetings[not(@MA = preceding-sibling::dfs:meetings/@MA)])&lt;/p&gt;</description></item><item><title>Re: Count unique values from a secondary source (sharepoint)</title><link>https://www.infopathdev.com:443/forums/thread/85026.aspx</link><pubDate>Mon, 03 Dec 2012 16:33:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85026</guid><dc:creator>toren78</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85026.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=85026</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi&lt;/p&gt;&lt;p&gt;Yes, there are many MA values which are the same,&lt;/p&gt;&lt;p&gt;The requirement is to count only those unique MA records.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Count unique values from a secondary source (sharepoint)</title><link>https://www.infopathdev.com:443/forums/thread/85025.aspx</link><pubDate>Mon, 03 Dec 2012 16:29:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85025</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85025.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=85025</wfw:commentRss><description>Is there any chance there were two records with the same MA value?</description></item><item><title>Re: Count unique values from a secondary source (sharepoint)</title><link>https://www.infopathdev.com:443/forums/thread/85019.aspx</link><pubDate>Mon, 03 Dec 2012 13:58:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85019</guid><dc:creator>toren78</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85019.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=85019</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;This time there was&lt;strong&gt; no error&lt;/strong&gt;, but the it counted all the records save&amp;nbsp;for&amp;nbsp;one, i.e there are 3206 records and the count was 3205.&lt;/p&gt;&lt;p&gt;Any ideas?&lt;/p&gt;&lt;p&gt;Cheers,&lt;/p&gt;&lt;p&gt;Oren&lt;/p&gt;</description></item><item><title>Re: Count unique values from a secondary source (sharepoint)</title><link>https://www.infopathdev.com:443/forums/thread/85002.aspx</link><pubDate>Mon, 03 Dec 2012 04:46:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85002</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85002.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=85002</wfw:commentRss><description>&lt;p&gt;Please give this a try:&lt;/p&gt;&lt;p&gt;count(xdXDocument:GetDom(&amp;quot;Meetings&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:meetings[@MA != preceding-sibling::dfs:meetings/@MA])&lt;/p&gt;</description></item><item><title>Re: Count unique values from a secondary source (sharepoint)</title><link>https://www.infopathdev.com:443/forums/thread/85001.aspx</link><pubDate>Mon, 03 Dec 2012 04:40:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85001</guid><dc:creator>toren78</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85001.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=85001</wfw:commentRss><description>Sure:

I tried either:

count(xdXDocument:GetDom(&amp;quot;Meetings&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:meetings/@MA[. != preceding-sibling::xdXDocument:GetDom(&amp;quot;Meetings&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:meetings/@MA])

Or:

count(xdXDocument:GetDom(&amp;quot;Meetings&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:meetings[@MA != preceding-sibling::xdXDocument:GetDom(&amp;quot;Meetings&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:meetings/@MA])


Thank you</description></item><item><title>Re: Count unique values from a secondary source (sharepoint)</title><link>https://www.infopathdev.com:443/forums/thread/84997.aspx</link><pubDate>Mon, 03 Dec 2012 04:00:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:84997</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/84997.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=84997</wfw:commentRss><description>Could you post the actual formula you wound up with?</description></item><item><title>Re: Count unique values from a secondary source (sharepoint)</title><link>https://www.infopathdev.com:443/forums/thread/84993.aspx</link><pubDate>Sun, 02 Dec 2012 10:34:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:84993</guid><dc:creator>toren78</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/84993.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=84993</wfw:commentRss><description>Hi,

The suggested method did not work.
I&amp;#39;m getting an error that a &amp;quot;Node test&amp;quot; was expected.

Also, since it is a secondary source, Infopath added this prefix to the Xpath:

xdDocument:GetDom (&amp;quot;source name&amp;quot;)/dfs:......

Are you able to help?

Oren</description></item><item><title>Re: Count unique values from a secondary source (sharepoint)</title><link>https://www.infopathdev.com:443/forums/thread/84879.aspx</link><pubDate>Thu, 29 Nov 2012 15:56:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:84879</guid><dc:creator>toren78</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/84879.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=84879</wfw:commentRss><description>Jimmy,
Thank you for your swift reply!

I&amp;#39;ll test it Sunday first thing and report back,

Cheers,
Oren</description></item><item><title>Re: Count unique values from a secondary source (sharepoint)</title><link>https://www.infopathdev.com:443/forums/thread/84873.aspx</link><pubDate>Thu, 29 Nov 2012 15:02:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:84873</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/84873.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=84873</wfw:commentRss><description>&lt;p&gt;The general format would be this:&lt;/p&gt;&lt;p&gt;count(&lt;strong&gt;repeatingGroup&lt;/strong&gt;[&lt;strong&gt;field&lt;/strong&gt; != preceding-sibling::&lt;strong&gt;repeatingGroup&lt;/strong&gt;/&lt;strong&gt;field&lt;/strong&gt;])&lt;/p&gt;</description></item><item><title>Count unique values from a secondary source (sharepoint)</title><link>https://www.infopathdev.com:443/forums/thread/84872.aspx</link><pubDate>Thu, 29 Nov 2012 14:38:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:84872</guid><dc:creator>toren78</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/84872.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=84872</wfw:commentRss><description>I have a secondary source in Infopath 2007 filler form template, 
This source is from a Sharepoint list that contains many records.
my requirement is to count unique records  (text) in one of the columns.

Example:

Col a
A
A
A
B
B
D

Should count 3.


Searched all over the place but could not find a proper solution...
Ideas?

Thanks,
Oren.</description></item></channel></rss>