<?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 for each distinct value</title><link>https://www.infopathdev.com:443/forums/thread/40867.aspx</link><pubDate>Wed, 22 Apr 2009 19:12:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40867</guid><dc:creator>jeanpaulhanna</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40867.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=40867</wfw:commentRss><description>&lt;p&gt;I figured it out....&lt;/p&gt;
&lt;p&gt;count(../my:LIENS[(my:LIEN_TYPE = current()/my:LIEN_TYPE)])&lt;/p&gt;</description></item><item><title>Re: Count for each distinct value</title><link>https://www.infopathdev.com:443/forums/thread/40720.aspx</link><pubDate>Sat, 18 Apr 2009 22:40:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40720</guid><dc:creator>jeanpaulhanna</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40720.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=40720</wfw:commentRss><description>&lt;p&gt;thank you for your reply....&lt;/p&gt;
&lt;p&gt;That would work if the values were static....the list that&amp;nbsp; I provided was just an example of the values, and I will not always know what values will be.&lt;/p&gt;</description></item><item><title>Re: Count for each distinct value</title><link>https://www.infopathdev.com:443/forums/thread/40711.aspx</link><pubDate>Sat, 18 Apr 2009 04:56:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40711</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40711.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=40711</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Add an expression box/ text box to the form. Add the below expression as default value.&lt;/p&gt;
&lt;p&gt;count(../my:group1/my:group2[my:field1 = &amp;quot;Building Loan Agreement&amp;quot;])&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here group2 is the repeating table and field1 is the field value which stores the values you have mentioned (Building Loan Agreement, ..) &lt;/p&gt;
&lt;p&gt;The above expression will give the count for ‘Building Loan Agreement&amp;#39;.&lt;/p&gt;
&lt;p&gt;Use the same for other values by replacing the ‘Building Loan Agreement&amp;#39; value with ‘Lis Pendens&amp;#39; / ‘Mechanics Lien&amp;#39;&lt;/p&gt;</description></item><item><title>Count for each distinct value</title><link>https://www.infopathdev.com:443/forums/thread/40702.aspx</link><pubDate>Fri, 17 Apr 2009 19:53:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40702</guid><dc:creator>jeanpaulhanna</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40702.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=40702</wfw:commentRss><description>&lt;p&gt;I have a repeating table where I am filtering by distinct value&lt;/p&gt;
&lt;p&gt;not(my:LIEN_TYPE = preceding::my:LIENS/my:LIEN_TYPE)&lt;/p&gt;
&lt;p&gt;I need to display a count for each unique value&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Below are the values in my table:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Building Loan Agreement&lt;br /&gt;Lis Pendens&lt;br /&gt;Building Loan Agreement&lt;br /&gt;Building Loan Agreement&lt;br /&gt;Lis Pendens&lt;br /&gt;Mechanics Lien&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;It should display like the following:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Building Loan Agreement&amp;nbsp;&amp;nbsp; 3&lt;br /&gt;Lis Pendens&amp;nbsp; 2&lt;br /&gt;Mechanics Lien 1&lt;/p&gt;
&lt;p&gt;Currently I am able to display the list of unique values but I am not able to get a count on each&lt;/p&gt;
&lt;p&gt;Please help&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>